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.