From 1e9b5833eb03ee83e1a90de85905ae3069cd7fb9 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Wed, 1 Aug 2018 15:53:55 -0700 Subject: [PATCH] Correctly handle keypresses which triggers a secondary role --- right/src/usb_report_updater.c | 1 + 1 file changed, 1 insertion(+) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 7d99023..d69a173 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -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); }