mirror of
https://github.com/storytold/winit.git
synced 2026-11-30 02:08:57 +01:00
While an IME uses a key, WM_KEYDOWN carries VK_PROCESSKEY. winit sent it as a Process key press with the key's physical code, and apps that fall back to the physical key (egui-winit does) took it as a press of that key: Backspace, Enter or an arrow typed into a composition acted both in the composition and in the app. Such a key-down is no longer sent, unless the IME passes text on with it as WM_CHAR. The key-up still arrives with the real virtual key. Guarded in tests/ime_patches.rs. Part of storytold/craft-libs#198 (item I6).