AltGr + Precise KeyMask detection#83
Open
exlee wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey,
I'm using
Alt-1..for my keybinds and alsoAlt-Shift-3for specific screenshot app. That's when I found thatAlt+<anything>+<N>is handled byAlt+<N>.Didn't want to bother with a feature request so I made a pull request instead.
PR contents
Precise keymap mask handling
So
Alt+Nhandles ONLYAlt+N, non-matching mask combinations are left unmatched and returned to system dispatcher.AltGr recognition
Since I was already at keys, another long standing issue was inability to use AltGr+N keys (which has some helpful symbols like
€,§,•,°(for 25°C),‹,›.So Left Alt/Option is recognized as Alt/Option, Right ALT is recognized as AltGr
Side effect: If someone is using LeftAlt+ and RightAlt+ this patch will make them unhappy.
AI-Assisted Contribution Notice
This contribution was produced with substantial assistance from AI (Codex/GPT 5.5).
My personal contribution:
I do not claim authorship because my contribution is too small.
I take full professional responsibility for the quality of the final result.
Please treat this as an offer rather than an expectation. If it isn’t a good fit, feel free to close the pull request.