« get me outta code hell

csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--index.js2
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
   }