Skip to content

XKey v1.2.21 (Build 20260504)

Choose a tag to compare

@xmannv xmannv released this 04 May 08:56
· 94 commits to main since this release

What's New

fix: clear history after Enter to prevent cross-boundary restore desync

After Enter in chat apps (Facebook, Telegram), the message is sent and input
cleared, but engine history still contained words from the sent message.
When user backspaced through new text, engine restored old words that no
longer exist on screen, causing buffer-screen desync and garbled output
like 'ddthuwr' instead of 'thử'.

Fix: Use reset() instead of startNewSession() in the Enter branch of
processWordBreak(). reset() clears ALL state including history, buffer,
specialChar, and flags — providing a clean slate after Enter.

Enter is a definitive boundary in all contexts (chat, terminal, editor),
so restoring words across Enter is unreliable and causes desync.

Also removed redundant terminal-specific clearHistory() from
KeyboardEventHandler since processWordBreak now handles all apps.