From d5eebcce3af657715fdbf3adb4f369ea6cf699ea Mon Sep 17 00:00:00 2001 From: IsaacElenbaas Date: Wed, 5 Aug 2020 08:42:35 -0400 Subject: [PATCH] Fixes #4072, #6214. Revision of #156 to clear before AS/TD. --- tmk_core/common/action.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index ee9aa0df77db..f4dc1ecf047a 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -72,6 +72,11 @@ void action_exec(keyevent_t event) { #endif } + if (event.pressed) { + // clear the potential weak mods left by previously pressed keys + clear_weak_mods(); + } + #ifdef FAUXCLICKY_ENABLE if (IS_PRESSED(event)) { FAUXCLICKY_ACTION_PRESS; @@ -230,11 +235,6 @@ void process_action(keyrecord_t *record, action_t action) { uint8_t tap_count = record->tap.count; #endif - if (event.pressed) { - // clear the potential weak mods left by previously pressed keys - clear_weak_mods(); - } - #ifndef NO_ACTION_ONESHOT bool do_release_oneshot = false; // notice we only clear the one shot layer if the pressed key is not a modifier.