mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
Deprecate KEY_OVERRIDE_*
keycodes for KO_*
(#18843)
This commit is contained in:
parent
fccf788285
commit
1d34f380eb
@ -150,15 +150,13 @@ const key_override_t fn_override = {.trigger_mods = MOD_BIT(KC_RGUI) |
|
|||||||
.enabled = NULL};
|
.enabled = NULL};
|
||||||
```
|
```
|
||||||
|
|
||||||
## Keycodes
|
## Keycodes
|
||||||
|
|
||||||
You can enable, disable and toggle all key overrides on the fly.
|
|Keycode |Aliases |Description |
|
||||||
|
|------------------------|---------|----------------------|
|
||||||
|Keycode |Description |Function Equivalent|
|
|`QK_KEY_OVERRIDE_TOGGLE`|`KO_TOGG`|Toggle key overrides |
|
||||||
|----------|---------------------------------|--------|
|
|`QK_KEY_OVERRIDE_ON` |`KO_ON` |Turn on key overrides |
|
||||||
|`KEY_OVERRIDE_ON` |Turns on Key Override feature | `key_override_on(void)`|
|
|`QK_KEY_OVERRIDE_OFF` |`KO_OFF` |Turn off key overrides|
|
||||||
|`KEY_OVERRIDE_OFF` |Turns off Key Override feature |`key_override_off(void)`|
|
|
||||||
|`KEY_OVERRIDE_TOGGLE` |Toggles Key Override feature on and off |`key_override_toggle(void)`|
|
|
||||||
|
|
||||||
## Reference for `key_override_t`
|
## Reference for `key_override_t`
|
||||||
|
|
||||||
|
@ -406,15 +406,15 @@ bool process_key_override(const uint16_t keycode, const keyrecord_t *const recor
|
|||||||
|
|
||||||
if (key_down) {
|
if (key_down) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case KEY_OVERRIDE_TOGGLE:
|
case QK_KEY_OVERRIDE_TOGGLE:
|
||||||
key_override_toggle();
|
key_override_toggle();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case KEY_OVERRIDE_ON:
|
case QK_KEY_OVERRIDE_ON:
|
||||||
key_override_on();
|
key_override_on();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case KEY_OVERRIDE_OFF:
|
case QK_KEY_OVERRIDE_OFF:
|
||||||
key_override_off();
|
key_override_off();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -513,9 +513,9 @@ enum quantum_keycodes {
|
|||||||
RGB_MODE_TWINKLE,
|
RGB_MODE_TWINKLE,
|
||||||
|
|
||||||
// Key Overrides
|
// Key Overrides
|
||||||
KEY_OVERRIDE_TOGGLE,
|
QK_KEY_OVERRIDE_TOGGLE,
|
||||||
KEY_OVERRIDE_ON,
|
QK_KEY_OVERRIDE_ON,
|
||||||
KEY_OVERRIDE_OFF,
|
QK_KEY_OVERRIDE_OFF,
|
||||||
|
|
||||||
// Additional magic key
|
// Additional magic key
|
||||||
MAGIC_TOGGLE_GUI,
|
MAGIC_TOGGLE_GUI,
|
||||||
@ -852,6 +852,11 @@ enum quantum_keycodes {
|
|||||||
// Caps Word
|
// Caps Word
|
||||||
#define CW_TOGG QK_CAPS_WORD_TOGGLE
|
#define CW_TOGG QK_CAPS_WORD_TOGGLE
|
||||||
|
|
||||||
|
// Key Overrides
|
||||||
|
#define KO_TOGG QK_KEY_OVERRIDE_TOGGLE
|
||||||
|
#define KO_ON QK_KEY_OVERRIDE_ON
|
||||||
|
#define KO_OFF QK_KEY_OVERRIDE_OFF
|
||||||
|
|
||||||
// Swap Hands
|
// Swap Hands
|
||||||
#define SH_T(kc) (QK_SWAP_HANDS | (kc))
|
#define SH_T(kc) (QK_SWAP_HANDS | (kc))
|
||||||
#define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)
|
#define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
#define CAPSWRD QK_CAPS_WORD_TOGGLE
|
#define CAPSWRD QK_CAPS_WORD_TOGGLE
|
||||||
#define CAPS_WORD QK_CAPS_WORD_TOGGLE
|
#define CAPS_WORD QK_CAPS_WORD_TOGGLE
|
||||||
|
|
||||||
|
#define KEY_OVERRIDE_TOGGLE QK_KEY_OVERRIDE_TOGGLE
|
||||||
|
#define KEY_OVERRIDE_ON QK_KEY_OVERRIDE_ON
|
||||||
|
#define KEY_OVERRIDE_OFF QK_KEY_OVERRIDE_OFF
|
||||||
|
|
||||||
#define PROGRAMMABLE_BUTTON_1 QK_PROGRAMMABLE_BUTTON_1
|
#define PROGRAMMABLE_BUTTON_1 QK_PROGRAMMABLE_BUTTON_1
|
||||||
#define PROGRAMMABLE_BUTTON_2 QK_PROGRAMMABLE_BUTTON_2
|
#define PROGRAMMABLE_BUTTON_2 QK_PROGRAMMABLE_BUTTON_2
|
||||||
#define PROGRAMMABLE_BUTTON_3 QK_PROGRAMMABLE_BUTTON_3
|
#define PROGRAMMABLE_BUTTON_3 QK_PROGRAMMABLE_BUTTON_3
|
||||||
|
Loading…
Reference in New Issue
Block a user