Fix capslock.

This commit is contained in:
Will Scullin 2019-03-13 20:00:37 -07:00
parent 127cee2dc0
commit ccc3a329f7
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -213,7 +213,7 @@ export default function KeyBoard(cpu, io, e) {
} else if (code in keymap) {
key = keymap[code][evt.shiftKey ? 2 : (evt.ctrlKey ? 1 : 0)];
if (capslocked && key >= 0x61 && key <= 0x7A)
key -= '\x20';
key -= 0x20;
} else {
debug('Unhandled key = ' + toHex(code));
}