-
-
Notifications
You must be signed in to change notification settings - Fork 396
Validate hotkey when setting it #1770
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
Conversation
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.
Can we:
- When a hotkey is unavailable, stay focused inside the text box so user can continue to try new hotkey.
- When clicked away and the hotkey is unavailable, return to the previous set hotkey.
I just remember I have a very old pr regarding this #933. Well but it is a bit hacky.... |
d7a7d9b
to
835370a
Compare
Closed by accident somehow. |
Please review again. |
{ | ||
return !((CharKey >= Key.A && CharKey <= Key.Z) || | ||
(CharKey >= Key.D0 && CharKey <= Key.D9) || | ||
(CharKey >= Key.NumPad0 && CharKey <= Key.NumPad9)); |
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.
Checking for all symbol keys are too difficult so I just ban alphanumeric keys.
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.
👍
Tests: