diff options
author | nopunin10did <w.alex.ronke@gmail.com> | 2020-08-17 05:08:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 02:08:15 -0700 |
commit | b4ae7badd46cb468cb8bef9be99dcf73f4a1e642 (patch) | |
tree | d989114571825a5c40f5e161bff58941d6ac7c0c /quantum/quantum_keycodes.h | |
parent | 2ddcd810201903836404724d27b8d5a628930a22 (diff) | |
download | qmk_firmware-b4ae7badd46cb468cb8bef9be99dcf73f4a1e642.tar.gz qmk_firmware-b4ae7badd46cb468cb8bef9be99dcf73f4a1e642.zip |
Issue 9942: Add LSA, RSA, RCS, LSA_T, RSA_T, and RCS_T (#9943)
* Issue 9942: Add Quantum defines
Add codes to quantum_keycodes for LSA, RSA, RCS, and their corresponding _T macros
* 9942: Add documentation for new defines
Add documentation for new defines in feature request 9942. Also define SAGR and SAGR_T as aliases for RSA and RSA_T.
* Update quantum/quantum_keycodes.h
* Update docs/keycodes.md
* Update docs/keycodes.md
* Update docs/keycodes.md
* Update docs/keycodes.md
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index d8f1fa4bb..437921aeb 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -540,6 +540,10 @@ enum quantum_keycodes { | |||
540 | #define SCMD(kc) SGUI(kc) | 540 | #define SCMD(kc) SGUI(kc) |
541 | #define SWIN(kc) SGUI(kc) | 541 | #define SWIN(kc) SGUI(kc) |
542 | #define LCA(kc) (QK_LCTL | QK_LALT | (kc)) | 542 | #define LCA(kc) (QK_LCTL | QK_LALT | (kc)) |
543 | #define LSA(kc) (QK_LSFT | QK_LALT | (kc)) | ||
544 | #define RSA(kc) (QK_RSFT | QK_RALT | (kc)) | ||
545 | #define RCS(kc) (QK_RCTL | QK_RSFT | (kc)) | ||
546 | #define SAGR(kc) RSA(kc) | ||
543 | 547 | ||
544 | #define MOD_HYPR 0xF | 548 | #define MOD_HYPR 0xF |
545 | #define MOD_MEH 0x7 | 549 | #define MOD_MEH 0x7 |
@@ -763,6 +767,11 @@ enum quantum_keycodes { | |||
763 | #define SCMD_T(kc) SGUI_T(kc) | 767 | #define SCMD_T(kc) SGUI_T(kc) |
764 | #define SWIN_T(kc) SGUI_T(kc) | 768 | #define SWIN_T(kc) SGUI_T(kc) |
765 | #define LCA_T(kc) MT(MOD_LCTL | MOD_LALT, kc) // Left Control + Alt | 769 | #define LCA_T(kc) MT(MOD_LCTL | MOD_LALT, kc) // Left Control + Alt |
770 | #define LSA_T(kc) MT(MOD_LSFT | MOD_LALT, kc) // Left Shift + Alt | ||
771 | #define RSA_T(kc) MT(MOD_RSFT | MOD_RALT, kc) // Right Shift + Alt | ||
772 | #define RCS_T(kc) MT(MOD_RCTL | MOD_RSFT, kc) // Right Control + Shift | ||
773 | #define SAGR_T(kc) RSA_T(kc) | ||
774 | |||
766 | #define ALL_T(kc) HYPR_T(kc) | 775 | #define ALL_T(kc) HYPR_T(kc) |
767 | 776 | ||
768 | // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap | 777 | // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap |