diff options
| author | Osamu Aoki <osamuaoki@users.noreply.github.com> | 2022-07-02 21:08:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-02 22:08:48 +1000 |
| commit | 871eeae4eab476cb64b40e0636ec19deeea79525 (patch) | |
| tree | 3b3836b26b02805ef814e06299c3e61e74e66a31 /quantum/quantum_keycodes.h | |
| parent | c7d8adfeaab26aedcf2edb22c29440a17462471c (diff) | |
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 { | |||
| 605 | 605 | ||
| 606 | CAPS_WORD, | 606 | CAPS_WORD, |
| 607 | 607 | ||
| 608 | MAGIC_SWAP_ESCAPE_CAPSLOCK, | ||
| 609 | MAGIC_UNSWAP_ESCAPE_CAPSLOCK, | ||
| 610 | MAGIC_TOGGLE_ESCAPE_CAPSLOCK, | ||
| 611 | |||
| 608 | // Start of custom keycode range for keyboards and keymaps - always leave at the end | 612 | // Start of custom keycode range for keyboards and keymaps - always leave at the end |
| 609 | SAFE_RANGE | 613 | SAFE_RANGE |
| 610 | }; | 614 | }; |
| @@ -756,6 +760,10 @@ enum quantum_keycodes { | |||
| 756 | #define CL_CAPS MAGIC_UNCAPSLOCK_TO_CONTROL | 760 | #define CL_CAPS MAGIC_UNCAPSLOCK_TO_CONTROL |
| 757 | #define CL_TOGG MAGIC_TOGGLE_CONTROL_CAPSLOCK | 761 | #define CL_TOGG MAGIC_TOGGLE_CONTROL_CAPSLOCK |
| 758 | 762 | ||
| 763 | #define EC_SWAP MAGIC_SWAP_ESCAPE_CAPSLOCK | ||
| 764 | #define EC_NORM MAGIC_UNSWAP_ESCAPE_CAPSLOCK | ||
| 765 | #define EC_TOGG MAGIC_TOGGLE_ESCAPE_CAPSLOCK | ||
| 766 | |||
| 759 | #define LCG_SWP MAGIC_SWAP_LCTL_LGUI | 767 | #define LCG_SWP MAGIC_SWAP_LCTL_LGUI |
| 760 | #define LCG_NRM MAGIC_UNSWAP_LCTL_LGUI | 768 | #define LCG_NRM MAGIC_UNSWAP_LCTL_LGUI |
| 761 | #define RCG_SWP MAGIC_SWAP_RCTL_RGUI | 769 | #define RCG_SWP MAGIC_SWAP_RCTL_RGUI |
