diff --git a/app/javascript/src/legacy/common.coffee b/app/javascript/src/legacy/common.coffee index 6ae5bbd0..f9236a1f 100644 --- a/app/javascript/src/legacy/common.coffee +++ b/app/javascript/src/legacy/common.coffee @@ -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 ?= {}