Files
apes-sidebar/tests
Andrei Sviryd 7599d4ac02 fix(ime-guard): trust keyCode 229 only inside a live composition context
Synthetic 229 keydowns emitted outside any IME (layout-switcher
utilities, e.g. KeyRay's layout swap: backspaces + one keydown carrying
the whole converted word via CGEventKeyboardSetUnicodeString, which
Chromium reports as keyCode 229 / isComposing=false) were swallowed by
the document-capture guard, so only the backspaces landed and the
replacement text silently disappeared.

Now the legacy 229 signal is trusted only while a composition is live,
plus a 50ms grace window after compositionend (covers legacy engines'
closing 229 keydown with isComposing === false, e.g. Safari). Real IME
composition keys (isComposing === true) are unaffected.
2026-10-04 20:16:44 +03:00
..
2026-09-09 11:15:30 +08:00