diff options
author | Ryan <fauxpark@gmail.com> | 2022-10-22 00:25:54 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 14:25:54 +0100 |
commit | b33fc349671148bff6f0a60172b53c51e59cda49 (patch) | |
tree | 18e3aafa86d75a242a7f8ccd53f2fc95824f9dfc /quantum | |
parent | 374d5d74804e0a99d93c3685f63f9f709b6ded22 (diff) |
Deprecate `KC_LEAD` for `QK_LEAD` (#18792)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/process_keycode/process_leader.c | 2 | ||||
-rw-r--r-- | quantum/quantum.c | 2 | ||||
-rw-r--r-- | quantum/quantum_keycodes.h | 5 | ||||
-rw-r--r-- | quantum/quantum_keycodes_legacy.h | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_leader.c b/quantum/process_keycode/process_leader.c index 3593f75f0d..7e6f3ad73c 100644 --- a/quantum/process_keycode/process_leader.c +++ b/quantum/process_keycode/process_leader.c @@ -72,7 +72,7 @@ bool process_leader(uint16_t keycode, keyrecord_t *record) { return false; } } else { - if (keycode == KC_LEAD) { + if (keycode == QK_LEADER) { qk_leader_start(); } } diff --git a/quantum/quantum.c b/quantum/quantum.c index 0f94e3855d..add7402550 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -225,7 +225,7 @@ bool process_record_quantum(keyrecord_t *record) { uint16_t keycode = get_record_keycode(record, true); // This is how you use actions here - // if (keycode == KC_LEAD) { + // if (keycode == QK_LEADER) { // action_t action; // action.code = ACTION_DEFAULT_LAYER_SET(0); // process_action(record, action); diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 939fab9298..f9268c833d 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -465,7 +465,7 @@ enum quantum_keycodes { JS_BUTTON31, // 5D28 // Leader Key - KC_LEAD, // 5D29 + QK_LEADER, // 5D29 // Bluetooth: output selection (continued) OUT_BT, // 5D2A @@ -846,6 +846,9 @@ enum quantum_keycodes { #define UC_M_WC UNICODE_MODE_WINC #define UC_M_EM UNICODE_MODE_EMACS +// Leader key +#define QK_LEAD QK_LEADER + // Swap Hands #define SH_T(kc) (QK_SWAP_HANDS | (kc)) #define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE) diff --git a/quantum/quantum_keycodes_legacy.h b/quantum/quantum_keycodes_legacy.h index 3a468d61f5..73c486492f 100644 --- a/quantum/quantum_keycodes_legacy.h +++ b/quantum/quantum_keycodes_legacy.h @@ -4,6 +4,8 @@ // Deprecated Quantum keycodes +#define KC_LEAD QK_LEADER + #define TERM_ON _Static_assert(false, "The Terminal feature has been removed from QMK. Please remove use of TERM_ON/TERM_OFF from your keymap.") #define TERM_OFF _Static_assert(false, "The Terminal feature has been removed from QMK.. Please remove use of TERM_ON/TERM_OFF from your keymap.") // #define RESET _Static_assert(false, "The RESET keycode has been removed from QMK.. Please remove use from your keymap.") |