« get me outta code hell

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:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
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()
   }
 })