Skip to content

Commit

Permalink
Update tap dancing to use global custom tapping term
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jul 7, 2019
1 parent aaef983 commit ee07505
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions quantum/process_keycode/process_tap_dance.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ void matrix_scan_tap_dance () {
qk_tap_dance_action_t *action = &tap_dance_actions[i];
if(action->custom_tapping_term > 0 ) {
tap_user_defined = action->custom_tapping_term;
}
else{
} else {
#ifdef TAPPING_TERM_PER_KEY
tap_user_defined = get_tapping_term(action->state.keycode - QK_TAP_DANCE);
#else
tap_user_defined = TAPPING_TERM;
#endif
}
if (action->state.count && timer_elapsed (action->state.timer) > tap_user_defined) {
process_tap_dance_action_on_dance_finished (action);
Expand Down

0 comments on commit ee07505

Please sign in to comment.