Fix for control keys on Windows 8.1 (thanks again, Jason Scott!)

This commit is contained in:
Brendan Robert 2015-03-29 14:35:44 -05:00
parent 959a496e59
commit 3fa800d791

View File

@ -245,6 +245,9 @@ public class Keyboard implements Reconfigurable {
c = fixShiftedChar(c); c = fixShiftedChar(c);
} }
if (e.isControlDown()) {
c = (char) (c & 0x01f);
}
if (c < 128) { if (c < 128) {
pressKey((byte) c); pressKey((byte) c);
@ -276,6 +279,7 @@ public class Keyboard implements Reconfigurable {
case ',': return '<'; case ',': return '<';
case '.': return '>'; case '.': return '>';
case '/': return '?'; case '/': return '?';
case '`': return '~';
} }
} }
return c; return c;