diff options
-rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 138de0eba..17dc540a6 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c | |||
@@ -117,6 +117,10 @@ void preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
117 | action->state.interrupting_keycode = keycode; | 117 | action->state.interrupting_keycode = keycode; |
118 | process_tap_dance_action_on_dance_finished(action); | 118 | process_tap_dance_action_on_dance_finished(action); |
119 | reset_tap_dance(&action->state); | 119 | reset_tap_dance(&action->state); |
120 | |||
121 | // Tap dance actions can leave some weak mods active (e.g., if the tap dance is mapped to a keycode with | ||
122 | // modifiers), but these weak mods should not affect the keypress which interrupted the tap dance. | ||
123 | clear_weak_mods(); | ||
120 | } | 124 | } |
121 | } | 125 | } |
122 | } | 126 | } |