From 147c5df0132d1c481dbf483245aff91536cb9686 Mon Sep 17 00:00:00 2001 From: SMJS <38814077+SMJSGaming@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:21:08 +0100 Subject: [PATCH 1/2] Fixed the command key --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index bdd660b..9ac1442 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -178,7 +178,7 @@ class $modify(CCKeyboardDispatcher) { if (m_bAltPressed || key == KEY_Alt) { modifiers |= Modifier::Alt; } - if (m_bCommandPressed /* todo */) { + if (m_bCommandPressed || key == KEY_Command) { modifiers |= Modifier::Command; } if (m_bShiftPressed || key == KEY_Shift) { From 96f2373efd1dbaf0675a895eab0e6cc85d398d67 Mon Sep 17 00:00:00 2001 From: SMJS <38814077+SMJSGaming@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:34:13 +0100 Subject: [PATCH 2/2] Made a working fix --- src/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9ac1442..83e00a9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -172,15 +172,16 @@ class $modify(CCKeyboardDispatcher) { } if (down) { Modifier modifiers = Modifier::None; - if (m_bControlPressed || key == KEY_Control) { - modifiers |= Modifier::Control; + if (m_bControlPressed || m_bCommandPressed || key == KEY_Control) { + #ifdef GEODE_IS_MACOS + modifiers |= Modifier::Command; + #else + modifiers |= Modifier::Control; + #endif } if (m_bAltPressed || key == KEY_Alt) { modifiers |= Modifier::Alt; } - if (m_bCommandPressed || key == KEY_Command) { - modifiers |= Modifier::Command; - } if (m_bShiftPressed || key == KEY_Shift) { modifiers |= Modifier::Shift; }