Skip to content

Commit

Permalink
Can just clear instead of reassign
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Dec 8, 2024
1 parent 9fc64a2 commit 7d9a33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/src/legacy/common.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keysDown = new Map
# Many browsers eat keyup events if focus is lost while the button
# is pressed.
document.addEventListener 'blur', ->
keysDown = new Map
keysDown.clear()

window.OnKey = (key, options, press, release) ->
options ?= {}
Expand Down

0 comments on commit 7d9a33c

Please sign in to comment.