Automatically detects RTL and configures a text input