From 8222d047f57149850386290b40d61d54344dc46d Mon Sep 17 00:00:00 2001 From: David Kemp Date: Thu, 23 Oct 2014 21:51:48 +1100 Subject: [PATCH] Make the right shift key work in OemToAscii (only the left shift key was working) --- hidboot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hidboot.cpp b/hidboot.cpp index c32443bb..09290a4f 100644 --- a/hidboot.cpp +++ b/hidboot.cpp @@ -189,8 +189,8 @@ uint8_t KeyboardReportParser::OemToAscii(uint8_t mod, uint8_t key) { // [a-z] if (VALUE_WITHIN(key, 0x04, 0x1d)) { // Upper case letters - if ((kbdLockingKeys.kbdLeds.bmCapsLock == 0 && (mod & 2)) || - (kbdLockingKeys.kbdLeds.bmCapsLock == 1 && (mod & 2) == 0)) + if ((kbdLockingKeys.kbdLeds.bmCapsLock == 0 && shift) || + (kbdLockingKeys.kbdLeds.bmCapsLock == 1 && shift == 0)) return (key - 4 + 'A'); // Lower case letters