From c3189cc4f211eef6694f900385ae91c6f998b4d7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Jul 2022 07:23:09 +0200 Subject: qxt-mini: workaround osx lack of keyup events --- qxt-mini/qxtglobalshortcut_mac.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3