« get me outta code hell

Guide - 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:
authorFlorrie <towerofnix@gmail.com>2018-08-17 10:16:57 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-17 10:16:57 -0300
commitb0feb52c00c4be323142a5943d24578d97e3b2f4 (patch)
treeb2b8453f6dfec53b6e7174b0b4a78c347306dbf1 /index.js
parent7c37b0c721ec7ae12be80329b95cbe7c0cc9541d (diff)
Guide
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)