X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=quantum%2Fprocess_keycode%2Fprocess_tap_dance.c;h=16d33dddeee534471d1e91d9ab8bc7e41fca732c;hb=908966bdf36605301d27cdcae82c3201c156a43f;hp=b55ace5ba8372dc7deeadf0235150daaa26074c4;hpb=9d949389f92b6b397ed62246b60ead86d80a57a1;p=qmk_firmware.git diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index b55ace5ba..16d33ddde 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -131,6 +131,7 @@ void preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { if (keycode == action->state.keycode && keycode == last_td) continue; action->state.interrupted = true; + action->state.interrupting_keycode = keycode; process_tap_dance_action_on_dance_finished (action); reset_tap_dance (&action->state); } @@ -209,5 +210,6 @@ void reset_tap_dance (qk_tap_dance_state_t *state) { state->count = 0; state->interrupted = false; state->finished = false; + state->interrupting_keycode = 0; last_td = 0; }