שלו×,
I am afraid but this is OS specific since you want to change the keyboard layout. But I am sure you can change it via the system API every time the line edit gets the focus. (Or, ask the user for the shortcuts he normal uses to change the kb layout and trigger it programmatic.)
Or (not the best way) install a event handler and check for keyboard inputs and transform e.g. a "D" to "ד".
Lykurg
Bookmarks