rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.25k stars 213 forks source link

[Win] Enhance OptSpecialChars dead keys processing #731

Closed RedBearAK closed 1 year ago

RedBearAK commented 1 year ago

Adds more accurate and intuitive behavior to the process of using dead keys, to match macOS more closely, and fixes some of the Switch/Case lines that weren't working as expected (Escape, Space were not actually activating).

Dead keys sequences will now place the pending accent diacritic character in a highlight, then either replace it with an accented character if there is a match, or deselect the diacritic character and exit the dead keys sequence, leaving the diacritic character visible. Any input other than Escape or Space or a matching letter will be passed through. This is a match for how dead keys work in macOS.

Includes the updated comments and typo fixes, so I'll close PR #726.

RedBearAK commented 1 year ago

Closed due to some previously unnoticed behavior from editing keys that don't generate characters, and capital accented characters not working correctly. Reworked and replaced with PR #732.