diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44cb975 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +sync.sh diff --git a/tty.js b/tty.js index d5d0501..1a5bfb0 100644 --- a/tty.js +++ b/tty.js @@ -675,7 +675,7 @@ function TTY(screenElement, keyboardElement, bell) { case '7': case '8': case '9': - if (e.location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD) { + if (e.keyLocation === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD) { // Numpad, presumably - allow but nothing special return ord(e.keyName); } else if (e.ctrlKey) {