Don't call applyKeyAction() when a secondary role is triggered because it'd output the scancode of the pressed key which is not the right thing when the secondary role is layer switching.
This commit is contained in:
@@ -178,8 +178,9 @@ void UpdateActiveUsbReports(void)
|
||||
// Trigger secondary role.
|
||||
if (!keyState->previous && secondaryRoleState == SecondaryRoleState_Pressed) {
|
||||
secondaryRoleState = SecondaryRoleState_Triggered;
|
||||
} else {
|
||||
applyKeyAction(keyState, action);
|
||||
}
|
||||
applyKeyAction(keyState, action);
|
||||
}
|
||||
} else {
|
||||
if (keyState->suppressed) {
|
||||
|
||||
Reference in New Issue
Block a user