mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
... on mac
This commit is contained in:
@@ -196,12 +196,12 @@ bool QHotkeyPrivateMac::registerShortcut(QHotkey::NativeShortcut shortcut)
|
|||||||
}
|
}
|
||||||
|
|
||||||
EventHotKeyID hkeyID;
|
EventHotKeyID hkeyID;
|
||||||
hkeyID.signature = shortcut.first;
|
hkeyID.signature = shortcut.key;
|
||||||
hkeyID.id = shortcut.second;
|
hkeyID.id = shortcut.modifier;
|
||||||
|
|
||||||
EventHotKeyRef eventRef = 0;
|
EventHotKeyRef eventRef = 0;
|
||||||
OSStatus status = RegisterEventHotKey(shortcut.first,
|
OSStatus status = RegisterEventHotKey(shortcut.key,
|
||||||
shortcut.second,
|
shortcut.modifier,
|
||||||
hkeyID,
|
hkeyID,
|
||||||
GetApplicationEventTarget(),
|
GetApplicationEventTarget(),
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user