Boot Keyboard keys were never being released.

Fixes #825

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/833/head
Jesse Vincent 5 years ago
parent d0be5ab8e0
commit 37a3d44f99

@ -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));

Loading…
Cancel
Save