zed/crates/gpui_windows
John Tur 4031db17df
Disable the IME on Windows when text input is unexpected (#51041)
Fixes #42444

- Changed `accepts_text_input` on the editor to be more precise.
Previously, it returned `true` only in insert mode. Now it also returns
`true` when an operator is pending.
- On Windows, we disable the IME whenever there is no input handler
which `accepts_text_input`.
- How this improves Vim mode: in insert mode, the IME is enabled; in
normal mode, it is disabled (command keys are not intercepted); when an
operator is pending, the IME is re-enabled.

Release Notes:

- On Windows, the IME is disabled in Vim normal and visual modes.
2026-03-08 04:54:05 +00:00
..
src Disable the IME on Windows when text input is unexpected (#51041) 2026-03-08 04:54:05 +00:00
build.rs gpui: Extract gpui_platform out of gpui (#49277) 2026-02-19 18:57:49 +01:00
Cargo.toml gpui: Extract gpui_platform out of gpui (#49277) 2026-02-19 18:57:49 +01:00
LICENSE-APACHE gpui: Extract gpui_platform out of gpui (#49277) 2026-02-19 18:57:49 +01:00