From 185c97f4ef71c5fdf96bf8cde820850d5035ba9a Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 25 Apr 2021 11:34:56 +0200 Subject: try to cover right-mod keys under MacOS I guess --- src/frontend/qt_sdl/Input.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/Input.cpp b/src/frontend/qt_sdl/Input.cpp index ed014b7..f3ad651 100644 --- a/src/frontend/qt_sdl/Input.cpp +++ b/src/frontend/qt_sdl/Input.cpp @@ -226,7 +226,6 @@ bool HotkeyPressed(int id) { return HotkeyPress & (1<nativeScanCode(); return (scan == 0x11D || scan == 0x138 || scan == 0x36); } +#elifdef __APPLE__ +bool IsRightModKey(QKeyEvent* event) +{ + quint32 scan = event->nativeVirtualKey(); + return (scan == 0x37 || scan == 0x3A || scan == 0x3C || scan == 0x3E); +} #else bool IsRightModKey(QKeyEvent* event) { -- cgit v1.2.3