forked from mirrors/qmk_userspace
Pass in the keyrecord_t of the dual-role/tapping key when calling per-key tap hold functions (#15938)
* Replace keyp by &tapping_key in the record arg of per-key tap hold funcs * Replace NULL by &(keyrecord_t){} in 2nd arg of get_tapping_term
This commit is contained in:
parent
39bec3bfa5
commit
7148a69d5e
3 changed files with 11 additions and 11 deletions
|
@ -173,7 +173,7 @@ void tap_dance_task() {
|
|||
tap_user_defined = action->custom_tapping_term;
|
||||
} else {
|
||||
#ifdef TAPPING_TERM_PER_KEY
|
||||
tap_user_defined = get_tapping_term(action->state.keycode, NULL);
|
||||
tap_user_defined = get_tapping_term(action->state.keycode, &(keyrecord_t){});
|
||||
#else
|
||||
tap_user_defined = TAPPING_TERM;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue