Correctly handle keypresses which triggers a secondary role
This commit is contained in:
@@ -377,6 +377,7 @@ static void updateActiveUsbReports(void)
|
||||
// Trigger secondary role.
|
||||
if (!keyState->previous && secondaryRoleState == SecondaryRoleState_Pressed) {
|
||||
secondaryRoleState = SecondaryRoleState_Triggered;
|
||||
keyState->current = false;
|
||||
} else {
|
||||
applyKeyAction(keyState, action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user