Some text editors also support synchronization in the opposite direction: They automatically switch the keyboard script to the script of the font being used at the current selection. For example, this could happen when the user changes the selection. The assumption is that the user is most likely to type additional text in the script already being used for the current selection. Also, the location of the caret in bidirectional text may depend on the direction of the keyboard script. In this context, it is important that the direction of the keyboard script matches the direction of text in which the user clicks.
In 2-byte scripts, the issue of caret placement does not exist, so input methods often allow users to enter ASCII characters in a pass-through mode . Switching the keyboard is not necessary. Users of 1-byte scripts can enter ASCII characters only by switching to a Roman keyboard script .
MLTE supports font to keyboard synchronization by default. You can turn off keyboard synchronization by using the
kTXNNoKeyboardSyncMask
constant when you set the
iFrameOptions
parameter in the function TXNNewObject.