Skip to content

Commit

Permalink
Fixes #4072, #6214. Revision of #156 to clear before AS/TD. (#9941)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacElenbaas committed Feb 28, 2021
1 parent 58e733b commit 765d8a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,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 SWAP_HANDS_ENABLE
if (!IS_NOEVENT(event)) {
process_hand_swap(&event);
Expand Down Expand Up @@ -237,11 +242,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.
Expand Down

0 comments on commit 765d8a3

Please sign in to comment.