mirror of
https://github.com/storytold/winit.git
synced 2026-11-30 02:08:57 +01:00
Disallowing IME destroyed the window's input context and allowing it created a new one. Input methods keep their per-context state only while the context lives, so each focus change between text fields reset it: Vietnamese Telex turned off, and the new context stayed unfocused until the window lost and regained the focus. The window now keeps the context it was created with, in the preedit style. Allowing IME focuses it; disallowing it resets the composition and unfocuses it, and keys are no longer filtered through it.