Add numpad keys

This commit is contained in:
Joshua Bell 2013-05-02 17:17:22 -04:00
parent d8df7d1594
commit 9504df54ca

6
tty.js
View File

@ -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;
}