Process Tap Dances before WPM/Velocikey (#19599)
parent
a52b3aafd2
commit
db7ca07909
|
@ -238,6 +238,14 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TAP_DANCE_ENABLE
|
||||||
|
if (preprocess_tap_dance(keycode, record)) {
|
||||||
|
// The tap dance might have updated the layer state, therefore the
|
||||||
|
// result of the keycode lookup might change.
|
||||||
|
keycode = get_record_keycode(record, true);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef VELOCIKEY_ENABLE
|
#ifdef VELOCIKEY_ENABLE
|
||||||
if (velocikey_enabled() && record->event.pressed) {
|
if (velocikey_enabled() && record->event.pressed) {
|
||||||
velocikey_accelerate();
|
velocikey_accelerate();
|
||||||
|
@ -250,14 +258,6 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TAP_DANCE_ENABLE
|
|
||||||
if (preprocess_tap_dance(keycode, record)) {
|
|
||||||
// The tap dance might have updated the layer state, therefore the
|
|
||||||
// result of the keycode lookup might change.
|
|
||||||
keycode = get_record_keycode(record, true);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!(
|
if (!(
|
||||||
#if defined(KEY_LOCK_ENABLE)
|
#if defined(KEY_LOCK_ENABLE)
|
||||||
// Must run first to be able to mask key_up events.
|
// Must run first to be able to mask key_up events.
|
||||||
|
|
Loading…
Reference in New Issue