Merge pull request #8 from pdcawley/patch-1

Eliminate unnecessary `sendKeyboardReport`
pull/389/head
Gergely Nagy 7 years ago committed by GitHub
commit ea09f0d347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,8 +163,8 @@ Key SpaceCadet::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key
//may want to even UNSET the originally pressed key (future
//enhanacement?). This might also mean we don't need to return the
//key that was pressed, though I haven't confirmed that.
handleKeyswitchEvent(mapped_key, row, col, INJECTED);
handleKeyswitchEvent(alternate_key, row, col, IS_PRESSED | INJECTED);
hid::sendKeyboardReport();
//Unflag the key so we don't try this again.
map[index].flagged = false;

Loading…
Cancel
Save