« 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
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index ce4cf58..d83a00b 100644
--- a/index.js
+++ b/index.js
@@ -754,4 +754,6 @@ canvas.addEventListener('keypress', evt => {
   }
 })
 
+canvas.focus()
+
 requestAnimationFrame(drawLoop)