Skip to content

XKey v1.2.25 (Build 20260916)

Choose a tag to compare

@xmannv xmannv released this 16 Sep 07:13
· 14 commits to main since this release

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.