Merge pull request #833 from keyboardio/boot-keyboard-key-repeat-fix

Boot Keyboard keys were never being released.
pull/839/head
Jesse Vincent 5 years ago committed by GitHub
commit 201ea3abab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,8 +193,12 @@ class Keyboard {
} }
void releaseAllKeys() __attribute__((noinline)) { void releaseAllKeys() __attribute__((noinline)) {
resetModifierTracking(); resetModifierTracking();
nkro_keyboard_.releaseAll(); if (boot_keyboard_.getProtocol() == HID_BOOT_PROTOCOL) {
consumer_control_.releaseAll(); boot_keyboard_.releaseAll();
} else {
nkro_keyboard_.releaseAll();
consumer_control_.releaseAll();
}
} }
void pressConsumerControl(Key mapped_key) { void pressConsumerControl(Key mapped_key) {
consumer_control_.press(CONSUMER(mapped_key)); consumer_control_.press(CONSUMER(mapped_key));

Loading…
Cancel
Save