diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-07-11 07:23:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-07-11 07:23:09 +0200 |
commit | c3189cc4f211eef6694f900385ae91c6f998b4d7 (patch) | |
tree | 13aac237dc08dc56c3909d4868d13e15101000c1 | |
parent | 33e902a74465110489c6566f5f0c035ad9432de4 (diff) |
qxt-mini: workaround osx lack of keyup events
-rw-r--r-- | qxt-mini/qxtglobalshortcut_mac.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qxt-mini/qxtglobalshortcut_mac.cpp b/qxt-mini/qxtglobalshortcut_mac.cpp index d7cd7f84..59d0a40c 100644 --- a/qxt-mini/qxtglobalshortcut_mac.cpp +++ b/qxt-mini/qxtglobalshortcut_mac.cpp @@ -54,8 +54,10 @@ OSStatus qxt_mac_handle_hot_key(EventHandlerCallRef nextHandler, EventRef event, EventHotKeyID keyID; GetEventParameter(event, kEventParamDirectObject, typeEventHotKeyID, NULL, sizeof(keyID), NULL, &keyID); Identifier id = keyIDs.key(keyID.id); - if(id != Identifier()) + if(id != Identifier()) { QxtGlobalShortcutPrivate::activateShortcut(id.second, id.first, true); + QxtGlobalShortcutPrivate::activateShortcut(id.second, id.first, false); + } } return noErr; } |