mirror of https://github.com/mgba-emu/mgba.git
Only make GUI_MOD SDL events happen when no other modifiers are active
This commit is contained in:
parent
9873da0eb7
commit
dbc6567317
|
@ -101,7 +101,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
if (event->type == SDL_KEYDOWN) {
|
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) {
|
switch (event->keysym.sym) {
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||||
case SDLK_f:
|
case SDLK_f:
|
||||||
|
|
Loading…
Reference in New Issue