From 845751363605fadaea785665037fa4e1d572197f Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Tue, 5 Jun 2012 12:04:24 -0400 Subject: [PATCH] Add ignore list. Update tty.js to use new-style key location data. --- .gitignore | 2 ++ tty.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore 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) {