Commit fa367cdd5c8cf768b746744b1ccd6122d91f1a4b

Stephan Vedder 2020-11-24T10:56:50

emscripten: Fix alt key being a nav key

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/emscripten/SDL_emscriptenevents.c b/src/video/emscripten/SDL_emscriptenevents.c
index 80929af..d768397 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;