diff options
author | Osamu Aoki <[email protected]> | 2022-07-02 21:08:48 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-02 22:08:48 +1000 |
commit | 871eeae4eab476cb64b40e0636ec19deeea79525 (patch) | |
tree | 3b3836b26b02805ef814e06299c3e61e74e66a31 /quantum/quantum_keycodes.h | |
parent | c7d8adfeaab26aedcf2edb22c29440a17462471c (diff) | |
download | qmk_firmware-871eeae4eab476cb64b40e0636ec19deeea79525.tar.gz qmk_firmware-871eeae4eab476cb64b40e0636ec19deeea79525.zip |
PoC: Swap Escape and Caps (#16336)
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 869826ce19..456fad6f1b 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -605,6 +605,10 @@ enum quantum_keycodes { CAPS_WORD, + MAGIC_SWAP_ESCAPE_CAPSLOCK, + MAGIC_UNSWAP_ESCAPE_CAPSLOCK, + MAGIC_TOGGLE_ESCAPE_CAPSLOCK, + // Start of custom keycode range for keyboards and keymaps - always leave at the end SAFE_RANGE }; @@ -756,6 +760,10 @@ enum quantum_keycodes { #define CL_CAPS MAGIC_UNCAPSLOCK_TO_CONTROL #define CL_TOGG MAGIC_TOGGLE_CONTROL_CAPSLOCK +#define EC_SWAP MAGIC_SWAP_ESCAPE_CAPSLOCK +#define EC_NORM MAGIC_UNSWAP_ESCAPE_CAPSLOCK +#define EC_TOGG MAGIC_TOGGLE_ESCAPE_CAPSLOCK + #define LCG_SWP MAGIC_SWAP_LCTL_LGUI #define LCG_NRM MAGIC_UNSWAP_LCTL_LGUI #define RCG_SWP MAGIC_SWAP_RCTL_RGUI |