From ccc3a329f733d6811c40195925eb0b9a344e5aa2 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Wed, 13 Mar 2019 20:00:37 -0700 Subject: [PATCH] Fix capslock. --- js/ui/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 09491ad..43995b5 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -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)); }