mirror of
https://github.com/moebooru/moebooru
synced 2025-08-31 14:05:14 +00:00
Can just clear instead of reassign
This commit is contained in:
@@ -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 ?= {}
|
||||
|
Reference in New Issue
Block a user