You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- gate interpretKeyEvents: forwarding by a configurable modifier mask
- handle IME direct commits without preedit (e.g. SKK kana mode)
- swallow keys consumed via IMKTextInput.selectMode (SKK Ctrl+J, q)
- Automatically updates position when cursor moves via keyboard, mouse, or any other method
880
880
- Set to `false` to use system default IME positioning behavior
881
881
882
+
-`forward-to-ime-modifier-mask` - Modifier mask deciding when a key event is forwarded to the macOS IME (default: `["shift", "ctrl", "alt", "super"]`)
883
+
- macOS only. Has no effect on other platforms.
884
+
- A key event is forwarded to the IME (`interpretKeyEvents:`) when no modifier is pressed, or when the pressed modifiers intersect this mask. Otherwise the event is handled directly by the application without going through the IME.
885
+
- Useful for input methods such as SKK that need to receive `Ctrl`+key combinations directly. Set to `["shift", "ctrl"]` to keep `Ctrl-J` (and similar conversion shortcuts) reaching the IME while still letting unmodified keys pass through.
886
+
- Accepted values (case-insensitive): `shift`, `ctrl` (alias `control`), `alt` (alias `option`), `super` (aliases `cmd`, `command`). Unknown values are ignored with a warning.
887
+
- The default keeps the historical behavior where every key event reaches the IME.
0 commit comments