diff options
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js index 132aaac..b332b23 100644 --- a/index.js +++ b/index.js @@ -1670,7 +1670,7 @@ function drawLoop() { requestAnimationFrame(drawLoop) } -canvas.addEventListener('keypress', evt => { +canvas.addEventListener('keydown', evt => { if (battle.gameState !== 'battle') { return } |