diff options
author | Florrie <towerofnix@gmail.com> | 2018-08-17 10:16:57 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-08-17 10:16:57 -0300 |
commit | b0feb52c00c4be323142a5943d24578d97e3b2f4 (patch) | |
tree | b2b8453f6dfec53b6e7174b0b4a78c347306dbf1 /index.js | |
parent | 7c37b0c721ec7ae12be80329b95cbe7c0cc9541d (diff) |
Guide
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
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) |