« 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.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index 5e52dc4..01902c5 100644
--- a/index.js
+++ b/index.js
@@ -1409,6 +1409,8 @@ canvas.addEventListener('keypress', evt => {
   }
 })
 
-canvas.focus()
+setTimeout(() => {
+  canvas.focus()
+})
 
 requestAnimationFrame(drawLoop)