mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-11-27 12:49:56 +00:00
Add numpad keys
This commit is contained in:
parent
d8df7d1594
commit
9504df54ca
6
tty.js
6
tty.js
@ -752,6 +752,12 @@ function TTY(screenElement, keyboardElement, bell) {
|
||||
case 'Quote': return e.shiftKey ? ord('"') : ord('\'');
|
||||
|
||||
// not present on Apple II keyboard
|
||||
case 'NumpadAdd': return ord('+');
|
||||
case 'NumpadSubtract': return ord('-');
|
||||
case 'NumpadMultiply': return ord('*');
|
||||
case 'NumpadDivide': return ord('/');
|
||||
case 'NumpadDecimal': return ord('.');
|
||||
case 'NumpadEnter': return 13;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user