From 1a5798587ce4ae5fd3ac130e37552c762d4ce5ae Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Sun, 4 Dec 2016 15:54:29 +0100 Subject: [PATCH] ... on mac --- QHotkey/qhotkey_mac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QHotkey/qhotkey_mac.cpp b/QHotkey/qhotkey_mac.cpp index 743df5d..7dee680 100644 --- a/QHotkey/qhotkey_mac.cpp +++ b/QHotkey/qhotkey_mac.cpp @@ -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,