IME composition
Zed
cited
open
Zed Vim jk escape depends on the CJK IME input mode
Vim jk escape depends on the CJK IME input mode
zed · zed-industries/zed
Symptom
With Vim mode and a CJK IME, the jk insert-mode escape only fires while the IME is composing in Chinese mode; in direct English input it inserts a literal j and k instead of escaping.
Minimal repro
Enable Vim mode, map jk to escape, use a CJK IME such as macOS Pinyin; jk escapes while composing in Chinese mode but not in English mode.
Fix
Detect the jk key sequence consistently regardless of the IME composition state.