aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_tap_dance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 58192413f..b9b836df2 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -86,6 +86,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
86 86
87 default: 87 default:
88 if (qk_tap_dance_state.keycode) { 88 if (qk_tap_dance_state.keycode) {
89 // if we are here, the tap dance was interrupted by a different key
89 process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode); 90 process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode);
90 process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode); 91 process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode);
91 reset_tap_dance (&qk_tap_dance_state); 92 reset_tap_dance (&qk_tap_dance_state);
@@ -98,6 +99,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
98 99
99void matrix_scan_tap_dance () { 100void matrix_scan_tap_dance () {
100 if (qk_tap_dance_state.keycode && timer_elapsed (qk_tap_dance_state.timer) > TAPPING_TERM) { 101 if (qk_tap_dance_state.keycode && timer_elapsed (qk_tap_dance_state.timer) > TAPPING_TERM) {
102 // if we are here, the tap dance was timed out
101 process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode); 103 process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode);
102 reset_tap_dance (&qk_tap_dance_state); 104 reset_tap_dance (&qk_tap_dance_state);
103 } 105 }