From 2616ec46f5b69e3452788394ba6d0e21232463cc Mon Sep 17 00:00:00 2001 From: Dmitry Lukianov Date: Sat, 5 Aug 2017 15:59:40 +0700 Subject: fixed macos build --- qxt-mini/qxtglobalshortcut_mac.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qxt-mini') diff --git a/qxt-mini/qxtglobalshortcut_mac.cpp b/qxt-mini/qxtglobalshortcut_mac.cpp index 55684667..d7cd7f84 100644 --- a/qxt-mini/qxtglobalshortcut_mac.cpp +++ b/qxt-mini/qxtglobalshortcut_mac.cpp @@ -80,7 +80,7 @@ quint32 QxtGlobalShortcutPrivate::nativeKeycode(Qt::Key keys) { UTF16Char ch; // Constants found in NSEvent.h from AppKit.framework - switch (key) + switch (keys) { case Qt::Key_Return: return kVK_Return; @@ -170,11 +170,11 @@ quint32 QxtGlobalShortcutPrivate::nativeKeycode(Qt::Key keys) ; } - if (key == Qt::Key_Escape) ch = 27; - else if (key == Qt::Key_Return) ch = 13; - else if (key == Qt::Key_Enter) ch = 3; - else if (key == Qt::Key_Tab) ch = 9; - else ch = key; + if (keys == Qt::Key_Escape) ch = 27; + else if (keys == Qt::Key_Return) ch = 13; + else if (keys == Qt::Key_Enter) ch = 3; + else if (keys == Qt::Key_Tab) ch = 9; + else ch = keys; CFDataRef currentLayoutData; TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource(); -- cgit v1.2.3