summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2023-01-17 06:23:57 +0100
committerGitHub <noreply@github.com>2023-01-16 21:23:57 -0800
commitdb7ca079090b8600ec734e8f32a99f31b89c0eff (patch)
tree52eb0d17e70e9a3189bb99f8e8e62e1a74eed421
parenta52b3aafd2e9ab1673f25933d389e8978042f8b0 (diff)
Process Tap Dances before WPM/Velocikey (#19599)
-rw-r--r--quantum/quantum.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index e7dc71e5d7..0fe54c60a7 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -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();
@@ -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.