Skip to content

Commit ffeb761

Browse files
authored
Fix crash introduced in #22874 (#22884)
1 parent b5e5ff8 commit ffeb761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_sdl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ var LibrarySDL = {
553553
receiveEvent(event) {
554554
function unpressAllPressedKeys() {
555555
// Un-press all pressed keys: TODO
556-
for (var keyCode of SDL.keyboardMap) {
556+
for (var keyCode of Object.values(SDL.keyboardMap)) {
557557
SDL.events.push({
558558
type: 'keyup',
559559
keyCode,

0 commit comments

Comments
 (0)