From fa367cdd5c8cf768b746744b1ccd6122d91f1a4b Mon Sep 17 00:00:00 2001 From: Stephan Vedder Date: Tue, 24 Nov 2020 10:56:50 +0100 Subject: [PATCH] emscripten: Fix alt key being a nav key --- src/video/emscripten/SDL_emscriptenevents.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/emscripten/SDL_emscriptenevents.c b/src/video/emscripten/SDL_emscriptenevents.c index 80929af89..d768397fd 100644 --- a/src/video/emscripten/SDL_emscriptenevents.c +++ b/src/video/emscripten/SDL_emscriptenevents.c @@ -578,8 +578,7 @@ Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent *keyEvent, voi keyEvent->keyCode == 39 /* right */ || keyEvent->keyCode == 40 /* down */ || (keyEvent->keyCode >= 112 && keyEvent->keyCode <= 135) /* F keys*/ || - keyEvent->ctrlKey || - keyEvent->altKey; + keyEvent->ctrlKey; if (eventType == EMSCRIPTEN_EVENT_KEYDOWN && SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE && !is_nav_key) prevent_default = SDL_FALSE;