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