Repository navigation
XKey v1.2.21 (Build 20260423)
What's New
fix(engine): resolve qww standalone undo bug - qu guard bypass
Root cause: TypingBuffer.keyCode(at:) returns processedData base key
(KEY_U) instead of raw keyCode (KEY_W) after w→ư standalone conversion.
This caused handleVowelKey's 'qu' guard to wrongly match 'qư' as 'qu',
bypassing checkForStandaloneChar undo logic entirely.
Fix:
- VNEngine.swift: Add STANDALONE_MASK check to 'qu' guard in handleVowelKey
- VNEngine.swift: Check processedData bitmask in checkForStandaloneChar
- VNEngineEnglishDetection.swift: Add 'qw' to consonantWClusters
- VNEngineTests.swift: Add 6 standalone undo tests (ww, qww, hww, bww, khww, caps)
All tests pass.