Skip to content

Commit

Permalink
Fixes qmk#4072, qmk#6214. Revision of qmk#156 to clear before AS/TD.
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacElenbaas committed Aug 5, 2020
1 parent 349646b commit d5eebcc
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 @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d5eebcc

Please sign in to comment.