diff options
| author | Matteo Ceruti <matteo.ceruti@gmail.com> | 2023-08-24 00:12:03 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-25 12:47:03 +0200 |
| commit | 39bcce3786ac9f08f0ff80b7c51bd4b2e7a96106 (patch) | |
| tree | 262d6ad97aca2f85154402c7385513b28b6e283e /qxt-mini/qxtglobalshortcut.cpp | |
| parent | 1ea5bb0aa7f2f271724ded372957b6f3759fa5a8 (diff) | |
Fix shortcuts on macOS: Must distinguish Key Pressed and Release. Otherise Shortcuts do not work
Diffstat (limited to 'qxt-mini/qxtglobalshortcut.cpp')
| -rw-r--r-- | qxt-mini/qxtglobalshortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qxt-mini/qxtglobalshortcut.cpp b/qxt-mini/qxtglobalshortcut.cpp index 52758f717..dec11dc42 100644 --- a/qxt-mini/qxtglobalshortcut.cpp +++ b/qxt-mini/qxtglobalshortcut.cpp @@ -180,7 +180,7 @@ void QxtGlobalShortcutPrivate::activateShortcut(quint32 nativeKey, quint32 nativ shortcut->qxt_d().keystate = false; if (shortcut->isEnabled()) - emit shortcut->activated(true); + emit shortcut->activated(is_down); } #endif } |
