From ffeb76137e765a0023de2635420a4827ca15106d Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 7 Nov 2024 17:07:32 -0800 Subject: [PATCH] Fix crash introduced in #22874 (#22884) --- src/library_sdl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library_sdl.js b/src/library_sdl.js index e9cbe60ef97f8..9ab538381b403 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -553,7 +553,7 @@ var LibrarySDL = { receiveEvent(event) { function unpressAllPressedKeys() { // Un-press all pressed keys: TODO - for (var keyCode of SDL.keyboardMap) { + for (var keyCode of Object.values(SDL.keyboardMap)) { SDL.events.push({ type: 'keyup', keyCode,