Switch keymap only upon keypress.
This commit is contained in:
@@ -132,7 +132,9 @@ void UpdateActiveUsbReports(void)
|
||||
processMouseAction(action);
|
||||
break;
|
||||
case KeyActionType_SwitchKeymap:
|
||||
SwitchKeymap(action.switchKeymap.keymapId);
|
||||
if (!keyState->previous && keyState->current) {
|
||||
SwitchKeymap(action.switchKeymap.keymapId);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user