Update keyboards/skyloong/gk61/pro_ds/keymaps/via/keymap.c

OK, I agree with your advice.

Co-authored-by: Daniel <1767914+iamdanielv@users.noreply.github.com>
This commit is contained in:
JIKEDINGZHI 2024-08-19 15:12:54 +08:00 committed by GitHub
parent 51e2f09aa4
commit 60b49583ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,7 +226,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true; // continue all further processing of this key
case TD(_DN_MU):
action = &tap_dance_actions[TD_INDEX(keycode)];
action = &tap_dance_actions[QK_TAP_DANCE_GET_INDEX(keycode)];
if (!record->event.pressed && action->state.count && !action->state.finished) {
tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)action->user_data;
tap_code16(tap_hold->tap);