summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2022-08-01 15:42:37 +0900
committerGitHub <noreply@github.com>2022-08-01 15:42:37 +0900
commite14aa9223b14de2abdc5817597818643d299f12a (patch)
tree9ebfbc64165c8835ab68bae7fc3c4d888cb6fb14 /quantum
parentba203943707a793641941d5c96dbaf05691fc263 (diff)
fix: restore the ability to disable tab from autoshifted keys (#355)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_auto_shift.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_auto_shift.h b/quantum/process_keycode/process_auto_shift.h
index ac6a143746..3df4048678 100644
--- a/quantum/process_keycode/process_auto_shift.h
+++ b/quantum/process_keycode/process_auto_shift.h
@@ -29,10 +29,16 @@
// clang-format off
#define AUTO_SHIFT_ALPHA KC_A ... KC_Z
#define AUTO_SHIFT_NUMERIC KC_1 ... KC_0
+#ifdef NO_AUTO_SHIFT_TAB
+#define AUTO_SHIFT_SPECIAL \
+ KC_MINUS ... KC_SLASH: \
+ case KC_NONUS_BSLASH
+#else
#define AUTO_SHIFT_SPECIAL \
KC_TAB: \
case KC_MINUS ... KC_SLASH: \
case KC_NONUS_BSLASH
+#endif
// clang-format on
bool process_auto_shift(uint16_t keycode, keyrecord_t *record);