... on mac

This commit is contained in:
Skycoder42
2016-12-04 15:54:29 +01:00
parent 5d770d60a0
commit 1a5798587c
+4 -4
View File
@@ -196,12 +196,12 @@ bool QHotkeyPrivateMac::registerShortcut(QHotkey::NativeShortcut shortcut)
}
EventHotKeyID hkeyID;
hkeyID.signature = shortcut.first;
hkeyID.id = shortcut.second;
hkeyID.signature = shortcut.key;
hkeyID.id = shortcut.modifier;
EventHotKeyRef eventRef = 0;
OSStatus status = RegisterEventHotKey(shortcut.first,
shortcut.second,
OSStatus status = RegisterEventHotKey(shortcut.key,
shortcut.modifier,
hkeyID,
GetApplicationEventTarget(),
0,