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:
László Monda
2017-11-09 22:26:44 +01:00
parent b8846cd601
commit 402697c0a3

View File

@@ -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) {