mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2025-06-28 11:23:54 +00:00
Add numpad keys
This commit is contained in:
6
tty.js
6
tty.js
@ -752,6 +752,12 @@ function TTY(screenElement, keyboardElement, bell) {
|
|||||||
case 'Quote': return e.shiftKey ? ord('"') : ord('\'');
|
case 'Quote': return e.shiftKey ? ord('"') : ord('\'');
|
||||||
|
|
||||||
// not present on Apple II keyboard
|
// 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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user