Deprecate KC_LEAD
for QK_LEAD
(#18792)
This commit is contained in:
parent
374d5d7480
commit
b33fc34967
58 changed files with 90 additions and 85 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue