Repository navigation
XKey v1.2.25 (Build 20260916)
What's New
fix(engine): drop the cancelled 'd' modifier when "ddd" undoes "đ"
Typing d-d-d-o-s shows "ddó" on screen, but restore-on-wrong-spelling replayed
"dddos" instead of "ddos". The third 'd' was counted twice in the restore record:
insertD's undo branch stripped TONE_MASK without removing the modifier keystroke
that dd→đ had recorded, while the vRestore branch of processKey re-inserts that
same key as its own entry.
The undo branch now drops it through a new TypingBuffer.removeModifier(at:keyCode:),
which targets the key the undo actually cancelled rather than the newest modifier —
an entry can carry both a horn and a tone.
This stays scoped to 'd'. The other undo gestures must keep the cancelled modifier:
a tone key never reaches the screen, so the record is what heals the swallowed
keystroke ("address" restores both 's'), and a vowel undo leaves Vietnamese off for
the rest of the word, so no restore ever runs. Only the 'd' path re-enables
processing (the "Allow d after consonant" rule in insertKey), which is what exposed
the double count.
Also bump CURRENT_PROJECT_VERSION to 20260916.