mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-12-28 01:29:46 +00:00
Add ignore list. Update tty.js to use new-style key location data.
This commit is contained in:
parent
a2b686ba60
commit
8457513636
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*~
|
||||
sync.sh
|
2
tty.js
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user