From 18c9b2e603372d61bebb21c41b2fcdbdb60616a7 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 12 Aug 2018 13:57:04 -0300 Subject: Focus canvas automatically --- index.js | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit 1.3.0-6-gf8a5