summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_autocorrect.c8
-rw-r--r--quantum/quantum_keycodes.h12
2 files changed, 10 insertions, 10 deletions
diff --git a/quantum/process_keycode/process_autocorrect.c b/quantum/process_keycode/process_autocorrect.c
index f19ca4a90b..e3fcbc34ae 100644
--- a/quantum/process_keycode/process_autocorrect.c
+++ b/quantum/process_keycode/process_autocorrect.c
@@ -165,12 +165,12 @@ bool process_autocorrect(uint16_t keycode, keyrecord_t *record) {
mods |= get_oneshot_mods();
#endif
- if ((keycode >= AUTOCORRECT_ON && keycode <= AUTOCORRECT_TOGGLE) && record->event.pressed) {
- if (keycode == AUTOCORRECT_ON) {
+ if ((keycode >= QK_AUTOCORRECT_ON && keycode <= QK_AUTOCORRECT_TOGGLE) && record->event.pressed) {
+ if (keycode == QK_AUTOCORRECT_ON) {
autocorrect_enable();
- } else if (keycode == AUTOCORRECT_OFF) {
+ } else if (keycode == QK_AUTOCORRECT_OFF) {
autocorrect_disable();
- } else if (keycode == AUTOCORRECT_TOGGLE) {
+ } else if (keycode == QK_AUTOCORRECT_TOGGLE) {
autocorrect_toggle();
} else {
return true;
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 9d332ffb11..0be090e48b 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -611,9 +611,9 @@ enum quantum_keycodes {
UNICODE_MODE_EMACS,
- AUTOCORRECT_ON,
- AUTOCORRECT_OFF,
- AUTOCORRECT_TOGGLE,
+ QK_AUTOCORRECT_ON,
+ QK_AUTOCORRECT_OFF,
+ QK_AUTOCORRECT_TOGGLE,
MAGIC_TOGGLE_BACKSLASH_BACKSPACE,
@@ -740,9 +740,9 @@ enum quantum_keycodes {
#define EH_LEFT MAGIC_EE_HANDS_LEFT
#define EH_RGHT MAGIC_EE_HANDS_RIGHT
-#define CRT_ON AUTOCORRECT_ON
-#define CRT_OFF AUTOCORRECT_OFF
-#define CRT_TOG AUTOCORRECT_TOGGLE
+#define AC_ON QK_AUTOCORRECT_ON
+#define AC_OFF QK_AUTOCORRECT_OFF
+#define AC_TOGG QK_AUTOCORRECT_TOGGLE
// Velocikey
#define VK_TOGG QK_VELOCIKEY_TOGGLE