From dbc6567317605cf03d9c400b97ee3e03a960e04f Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 29 Jul 2014 22:48:55 -0700 Subject: [PATCH] Only make GUI_MOD SDL events happen when no other modifiers are active --- src/platform/sdl/sdl-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index e8633c537..03f398864 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -101,7 +101,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents return; default: if (event->type == SDL_KEYDOWN) { - if (event->keysym.mod & GUI_MOD) { + if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) { switch (event->keysym.sym) { #if SDL_VERSION_ATLEAST(2, 0, 0) case SDLK_f: