From 95fa9eda8c260ce73bad889e6c2a0e03e6a7d0b3 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 16 Aug 2018 14:47:22 -0300 Subject: Try to fix backspace going to previous webpage --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 94701c3..abc5d46 100644 --- a/index.js +++ b/index.js @@ -1212,6 +1212,8 @@ canvas.addEventListener('keypress', evt => { if (evt.keyCode === 9) { // Capture tab, but not everything else (like ctrl-R) evt.preventDefault() + } else if (evt.keyCode === 8) { // Apparently backspace does browser things we don't want + evt.preventDefault() } }) -- cgit 1.3.0-6-gf8a5