-
-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to use numpad for digits entry for unicode mode UC_WIN #14496
Conversation
In my opinion, it's okay if we make this the default behavior (without requiring the preprocessor setting). The |
I like that you opted to use the full keycode names: Do you mind updating the other keycodes in this file to also use the long variants?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the below changes and confirmed working (although the term “working” is relative when it comes to UC_WIN
).
Setup: AVR board, Unicode Map, UC_WIN
.
Tested in:
- VS Code — Works, except for code points that overlap with menu mnemonics (e.g. Alt+E, Alt+F). Fixable through settings. Works better than current
UC_WIN
because digits don't cause tab switching with the default keymap. - Windows Terminal (bash, bash over ssh) — Works, except for code points that overlap with Unix shell shortcuts (e.g. Alt+B, Alt+F). Still, works better than current
UC_WIN
because at least the digits don't invoke argument repetition mode. - Firefox — Works, except for code points that overlap with browser and add-on shortcuts (e.g. Alt+D).
- MS Word — No collisions with program shortcuts, but produces unpredictable output (Word doesn't play too well with hex numpad in the first place).
- JetBrains IDEs — Collides with menu mnemonics, and when it doesn't, it produces completely unpredictable output. Actually, this one seems to work better without numpad digits — but it's still completely unusable, so I don't think that makes a difference.
I tested with Visual Studio which I generally tend to use, and after disabling the usual mnemonics for A-F it works reliably there. I personally never use the mnemonics so don't lose anything. Word doesn't work as you mentioned, they seem to have their own way of doing things (e.g. type 221e followed by alt+x). I'll remove the preprocessor variable as you suggested. |
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Thanks for doing more testing! The changes LGTM now, apart from that small mistake I made. |
Co-authored-by: Konstantin Đorđević <[email protected]>
Thanks! |
Co-authored-by: Konstantin Đorđević <[email protected]>
Co-authored-by: Konstantin Đorđević <[email protected]>
Adds an option
UNICODE_UC_WIN_USE_NUMPAD_IF_POSSIBLE
to use the numpad for entering digits 0-9 of a hexadecimal unicode codepoint for unicode modeUC_WIN
, improving reliability of this unicode mode on Windows.Description
On Windows, if using the
UC_WIN
unicode mode, reliability of the alt entry succeeding is improved by using the numpad for entering the 0-9 digits of a hex code under numlock. This is because fewer apps hook alt+numpad digits for custom shortcuts. Of course this method of unicode entry still has issues if e.g. apps use menu mnemonics, though if they are disabled in for example VSCode the alt method becomes reliable if using the numpad instead of regular number keys.The downside of this method is that numlock is required, thus entering a unicode character this way would make the numlock led flash (if it was off), which is one reason I used a preprocessor setting to not switch this on by default.
Types of Changes
Issues Fixed or Closed by This PR
Checklist