mirror of
https://github.com/moebooru/moebooru
synced 2025-08-29 04:57:47 +00:00
Can just clear instead of reassign
This commit is contained in:
parent
9fc64a252e
commit
7d9a33ce11
@ -17,7 +17,7 @@ keysDown = new Map
|
|||||||
# Many browsers eat keyup events if focus is lost while the button
|
# Many browsers eat keyup events if focus is lost while the button
|
||||||
# is pressed.
|
# is pressed.
|
||||||
document.addEventListener 'blur', ->
|
document.addEventListener 'blur', ->
|
||||||
keysDown = new Map
|
keysDown.clear()
|
||||||
|
|
||||||
window.OnKey = (key, options, press, release) ->
|
window.OnKey = (key, options, press, release) ->
|
||||||
options ?= {}
|
options ?= {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user