Skip to content

Commit

Permalink
Process Tap Dances before WPM/Velocikey (qmk#19599)
Browse files Browse the repository at this point in the history
  • Loading branch information
joukewitteveen authored and omikronik committed Jan 22, 2023
1 parent c2f679d commit 95407c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ bool process_record_quantum(keyrecord_t *record) {
}
#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
if (velocikey_enabled() && record->event.pressed) {
velocikey_accelerate();
Expand All @@ -250,14 +258,6 @@ bool process_record_quantum(keyrecord_t *record) {
}
#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 defined(KEY_LOCK_ENABLE)
// Must run first to be able to mask key_up events.
Expand Down

0 comments on commit 95407c7

Please sign in to comment.