vial/tap-dance: change double hold behavior when no explicit entry

This commit is contained in:
Ilya Zhuravlev 2021-07-03 16:38:09 -04:00
parent be80d90f42
commit 274d9dcf07

View file

@ -355,10 +355,7 @@ static void on_dance_finished(qk_tap_dance_state_t *state, void *user_data) {
if (td_entry.on_tap_hold) {
register_code16(td_entry.on_tap_hold);
} else {
if (td_entry.on_double_tap) {
tap_code16(td_entry.on_double_tap);
register_code16(td_entry.on_double_tap);
} else if (td_entry.on_tap) {
if (td_entry.on_tap) {
tap_code16(td_entry.on_tap);
if (td_entry.on_hold)
register_code16(td_entry.on_hold);
@ -409,9 +406,7 @@ static void on_dance_reset(qk_tap_dance_state_t *state, void *user_data) {
if (td_entry.on_tap_hold) {
unregister_code16(td_entry.on_tap_hold);
} else {
if (td_entry.on_double_tap) {
unregister_code16(td_entry.on_double_tap);
} else if (td_entry.on_tap) {
if (td_entry.on_tap) {
if (td_entry.on_hold)
unregister_code16(td_entry.on_hold);
else