From 2cf6f15dde8422d47b54a2e232f7a177820d804f Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 11 Sep 2020 16:39:08 -0400 Subject: [PATCH] [ion/simulator] Allow CTRL or GUI for common shortcuts --- ion/src/simulator/shared/events_platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/simulator/shared/events_platform.cpp b/ion/src/simulator/shared/events_platform.cpp index f89bd881e..c69bde84a 100644 --- a/ion/src/simulator/shared/events_platform.cpp +++ b/ion/src/simulator/shared/events_platform.cpp @@ -21,7 +21,7 @@ static inline Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) { Ion::Events::ShiftAlphaStatus previousShiftAlphaStatus = Ion::Events::shiftAlphaStatus(); Ion::Events::removeShift(); - if (event.keysym.mod & KMOD_CTRL) { + if (event.keysym.mod & (KMOD_CTRL|KMOD_GUI)) { switch (event.keysym.sym) { case SDLK_x: return Cut;