Add ignore list. Update tty.js to use new-style key location data.

This commit is contained in:
Joshua Bell 2012-06-05 12:04:24 -04:00
parent a2b686ba60
commit 8457513636
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
sync.sh

2
tty.js
View File

@ -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) {