diff options
author | skullydazed <skullydazed@users.noreply.github.com> | 2018-03-01 08:13:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 08:13:10 -0800 |
commit | e3f67e6e7f726802b978a1e53eda3e2a40122565 (patch) | |
tree | 0b5b15f4299c62949a1851c1449989b3967731d3 | |
parent | 31cae1f1bd3f014893f0284f6e9bc80165130fcd (diff) | |
download | qmk_firmware-e3f67e6e7f726802b978a1e53eda3e2a40122565.tar.gz qmk_firmware-e3f67e6e7f726802b978a1e53eda3e2a40122565.zip |
Add `SGUI()` and `SGUI_T()` for consistency with `KC_GUI` (#2442)
* Add `SGUI()` as an alias of `SCMD()` for consistency with `KC_GUI`
* Add `SGUI_T()` as an alias of `SCMD_T()` for consistency with `KC_GUI`
* Make SGUI the primary name
-rw-r--r-- | quantum/quantum_keycodes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 1b9a7534c..2d9603064 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -454,7 +454,8 @@ enum quantum_keycodes { | |||
454 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) | 454 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) |
455 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) | 455 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) |
456 | #define ALTG(kc) (kc | QK_RCTL | QK_RALT) | 456 | #define ALTG(kc) (kc | QK_RCTL | QK_RALT) |
457 | #define SCMD(kc) (kc | QK_LGUI | QK_LSFT) | 457 | #define SGUI(kc) (kc | QK_LGUI | QK_LSFT) |
458 | #define SCMD(kc) SCMD(kc) | ||
458 | #define SWIN(kc) SCMD(kc) | 459 | #define SWIN(kc) SCMD(kc) |
459 | #define LCA(kc) (kc | QK_LCTL | QK_LALT) | 460 | #define LCA(kc) (kc | QK_LCTL | QK_LALT) |
460 | 461 | ||
@@ -619,7 +620,8 @@ enum quantum_keycodes { | |||
619 | #define LCAG_T(kc) MT((MOD_LCTL | MOD_LALT | MOD_LGUI), kc) // Left control alt and gui | 620 | #define LCAG_T(kc) MT((MOD_LCTL | MOD_LALT | MOD_LGUI), kc) // Left control alt and gui |
620 | #define RCAG_T(kc) MT((MOD_RCTL | MOD_RALT | MOD_RGUI), kc) // Right control alt and gui | 621 | #define RCAG_T(kc) MT((MOD_RCTL | MOD_RALT | MOD_RGUI), kc) // Right control alt and gui |
621 | #define ALL_T(kc) MT((MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI), kc) // see http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ | 622 | #define ALL_T(kc) MT((MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI), kc) // see http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ |
622 | #define SCMD_T(kc) MT((MOD_LGUI | MOD_LSFT), kc) | 623 | #define SGUI_T(kc) MT((MOD_LGUI | MOD_LSFT), kc) |
624 | #define SCMD_T(kc) SCMD_T(kc) | ||
623 | #define SWIN_T(kc) SCMD_T(kc) | 625 | #define SWIN_T(kc) SCMD_T(kc) |
624 | #define LCA_T(kc) MT((MOD_LCTL | MOD_LALT), kc) // Left control and left alt | 626 | #define LCA_T(kc) MT((MOD_LCTL | MOD_LALT), kc) // Left control and left alt |
625 | 627 | ||