From 39f0e6070a26d1246ac8c09752bd969149f9aad4 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 7 Nov 2024 14:54:57 -0800 Subject: [PATCH] Fix crash introduced in #22874 --- 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 e9cbe60ef97f..9ab538381b40 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,