diff options
author | Stanisław Halik <sthalik@misaki.pl> | 2017-08-05 17:13:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 17:13:06 +0200 |
commit | 70fa0b3f7e1ec4581e30127785fb6d59b89ec704 (patch) | |
tree | 9bb436304297b093a7a0e9c239cee01c175458a6 /qxt-mini/qxtglobalshortcut_mac.cpp | |
parent | f7701592fcf7cc3b268a331b969374cd0c796ff2 (diff) | |
parent | 2616ec46f5b69e3452788394ba6d0e21232463cc (diff) |
Merge pull request #668 from MrCapone/macos_build_fix
fixed macos build
Diffstat (limited to 'qxt-mini/qxtglobalshortcut_mac.cpp')
-rw-r--r-- | qxt-mini/qxtglobalshortcut_mac.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |