-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Provide HotkeyState on Global Shortcut Events
#3822
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
The global shortcuts are otherwise also triggering when the hotkey is being released. This affects at least Windows.
|
I feel like the handlers should still be called and the selection is done in user code. Someone might want to handle released events? |
|
That would require public API changes, but I can definitely implement it that way. |
HotkeyState on Global Shortcut Events
Instead of ignoring the events where the shortcut is released, the state is now provided as an argument to the event handler.
|
This should be ready to be reviewed again. It includes the breaking changes now. |
jkelleyrtp
left a comment
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.
Thank you! Sorry this sat for so long.
* Only react to hotkeys that are pressed The global shortcuts are otherwise also triggering when the hotkey is being released. This affects at least Windows. * Provide `HotkeyState` on Global Shortcut Events Instead of ignoring the events where the shortcut is released, the state is now provided as an argument to the event handler.
* Only react to hotkeys that are pressed The global shortcuts are otherwise also triggering when the hotkey is being released. This affects at least Windows. * Provide `HotkeyState` on Global Shortcut Events Instead of ignoring the events where the shortcut is released, the state is now provided as an argument to the event handler.
* Only react to hotkeys that are pressed The global shortcuts are otherwise also triggering when the hotkey is being released. This affects at least Windows. * Provide `HotkeyState` on Global Shortcut Events Instead of ignoring the events where the shortcut is released, the state is now provided as an argument to the event handler.
This state is now provided as an argument to the event handler, such that the user can decide whether to react to the global shortcut being released or not.