diff options
author | Thomas Huth <thuth@redhat.com> | 2016-07-14 13:43:46 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-07-25 14:58:27 +1000 |
commit | ff29ae86ff6a68a3e553fa32f5beca01f87f5874 (patch) | |
tree | 97a0b9d67e419745065fa48a79c439bf798ea0e2 /lib/libusb | |
parent | 554eb9b91580cc06a34283129a7d157660f4cc22 (diff) | |
download | SLOF-ff29ae86ff6a68a3e553fa32f5beca01f87f5874.zip SLOF-ff29ae86ff6a68a3e553fa32f5beca01f87f5874.tar.gz SLOF-ff29ae86ff6a68a3e553fa32f5beca01f87f5874.tar.bz2 |
usb-hid: Fix non-working comma key
Commit c8bd0cdce2bd ("Caps is not always shift") introduced
a global "ctrl" variable and two new cases to handle the shift
key in check_key_code() in usb-hid.c. However, one of these cases
uses the key code for the "," key and thus prevents that key
from working in the VGA console. The global ctrl variable that
is set by these two cases is never read again, so this is
apparently completely useless code, likely just an accidential
leftover from debugging the original issue. So let's simply
remove that bad code to get the comma key working again.
Fixes: c8bd0cdce2bd7c4498d61079553c89747656614d
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libusb')
-rw-r--r-- | lib/libusb/usb-hid.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libusb/usb-hid.c b/lib/libusb/usb-hid.c index ac6616a..1ea9ff2 100644 --- a/lib/libusb/usb-hid.c +++ b/lib/libusb/usb-hid.c @@ -87,7 +87,6 @@ uint8_t set_leds; const uint8_t *key_std = NULL; const uint8_t *key_std_shift = NULL; -uint8_t ctrl; /* modifiers */ /** * read character from Keyboard-Buffer @@ -205,12 +204,6 @@ static void check_key_code(uint8_t *buf) set_leds ^= LED_CAPS_LOCK; break; - case 0x36: /*Shift pressed*/ - ctrl |= MODIFIER_SHIFT; - break; - case 0xb6: /*Shift unpressed*/ - ctrl &= ~MODIFIER_SHIFT; - break; case 0x3a: /* F1 */ write_key(0x1b); write_key(0x5b); |