diff options
-rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
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() } }) |