-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix hotkey selector panic #110
Fix hotkey selector panic #110
Conversation
Allows global hotkeys to be set to "not set" by setting to any incompatible value, for example Esc.
Thanks for your PR! Personally, I aim to push performance to the limit. I suggest changing Please fix the CI, and I'll merge it into the dev branch. After that, I'll make some improvements later. |
I'll change to |
Replace key_to_string()->String with key_to_str()->&str.
Sorry, with those orange workflows I am not sure if I did everything I needed to do or not. |
* Fix hotkey selector panic (#110) * Implement to_string() for keyboard::Keys and key * Allow unsetting global hotkeys Allows global hotkeys to be set to "not set" by setting to any incompatible value, for example Esc. * Improve keyboard.rs Replace key_to_string()->String with key_to_str()->&str. * Refactor hotkey::Manager * Allow empty hotkey --------- Co-authored-by: Barafu Albino Cheetah <[email protected]>
Fixes application panic when trying to set a global hotkey to an unsupported hotkey. Instead of paic, saves hotkey as "Not set", which also allows disabling hotkeys when not needed.