summaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_autocorrect.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-02-18 17:08:03 -0800
committerGitHub <noreply@github.com>2023-02-19 12:08:03 +1100
commit48a79b08ccbcd0af5269e2e9334042c8347d18f8 (patch)
tree8f1f3c05d20ac48d57f7acce2c69864239faa47b /quantum/process_keycode/process_autocorrect.c
parent8f036574910177177cdd4e3cf5b48319b094c915 (diff)
Fix functions when `NO_ACTION_TAPPING` is defined (#11528)
Diffstat (limited to 'quantum/process_keycode/process_autocorrect.c')
-rw-r--r--quantum/process_keycode/process_autocorrect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_autocorrect.c b/quantum/process_keycode/process_autocorrect.c
index c89dffeaad..1376788266 100644
--- a/quantum/process_keycode/process_autocorrect.c
+++ b/quantum/process_keycode/process_autocorrect.c
@@ -128,7 +128,11 @@ __attribute__((weak)) bool process_autocorrect_user(uint16_t *keycode, keyrecord
128#ifdef SWAP_HANDS_ENABLE 128#ifdef SWAP_HANDS_ENABLE
129 // Note: IS_SWAP_HANDS_KEYCODE() actually tests for the special action keycodes like SH_TOGG, SH_TT, ..., 129 // Note: IS_SWAP_HANDS_KEYCODE() actually tests for the special action keycodes like SH_TOGG, SH_TT, ...,
130 // which currently overlap the SH_T(kc) range. 130 // which currently overlap the SH_T(kc) range.
131 if (IS_SWAP_HANDS_KEYCODE(*keycode) || !record->tap.count) { 131 if (IS_SWAP_HANDS_KEYCODE(*keycode)
132# ifndef NO_ACTION_TAPPING
133 || !record->tap.count
134# endif // NO_ACTION_TAPPING
135 ) {
132 return false; 136 return false;
133 } 137 }
134 *keycode = QK_SWAP_HANDS_GET_TAP_KEYCODE(*keycode); 138 *keycode = QK_SWAP_HANDS_GET_TAP_KEYCODE(*keycode);