Skip to content

Commit

Permalink
Boot Keyboard keys were never being released.
Browse files Browse the repository at this point in the history
Fixes #825

Signed-off-by: Jesse Vincent <[email protected]>
  • Loading branch information
obra committed Apr 27, 2020
1 parent d0be5ab commit 37a3d44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/kaleidoscope/driver/hid/base/Keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,12 @@ class Keyboard {
}
void releaseAllKeys() __attribute__((noinline)) {
resetModifierTracking();
nkro_keyboard_.releaseAll();
consumer_control_.releaseAll();
if (boot_keyboard_.getProtocol() == HID_BOOT_PROTOCOL) {
boot_keyboard_.releaseAll();
} else {
nkro_keyboard_.releaseAll();
consumer_control_.releaseAll();
}
}
void pressConsumerControl(Key mapped_key) {
consumer_control_.press(CONSUMER(mapped_key));
Expand Down

0 comments on commit 37a3d44

Please sign in to comment.