summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2017-01-14 03:16:10 +0100
committerGitHub <noreply@github.com>2017-01-14 03:16:10 +0100
commit0fde5a34e2ad178b741ae0b33d3c0bc59f2190a8 (patch)
tree3e18d0b1a1d2ef4ac136c6536f3d235d2eafd76e
parent176b93d08eb5cc0c65a6d571fc2c1fec5f575854 (diff)
parent7288e5ab9c005a7b035d91e68358aa2b6a12420c (diff)
downloadqmk_firmware-0fde5a34e2ad178b741ae0b33d3c0bc59f2190a8.tar.gz
qmk_firmware-0fde5a34e2ad178b741ae0b33d3c0bc59f2190a8.tar.xz
Merge pull request #1004 from jackhumbert/hf/scmd
Adds SCMD and SCMD_T
-rw-r--r--quantum/quantum_keycodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 5cd3c8e78..4853655f9 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -159,6 +159,8 @@ enum quantum_keycodes {
#define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT)
#define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI)
#define ALTG(kc) (kc | QK_RCTL | QK_RALT)
+#define SCMD(kc) (kc | QK_LGUI | QK_LSFT)
+#define SWIN(kc) SCMD(kc)
#define MOD_HYPR 0xf
#define MOD_MEH 0x7
@@ -293,6 +295,8 @@ enum quantum_keycodes {
#define MEH_T(kc) MT((MOD_LCTL | MOD_LSFT | MOD_LALT), kc) // Meh is a less hyper version of the Hyper key -- doesn't include Win or Cmd, so just alt+shift+ctrl
#define LCAG_T(kc) MT((MOD_LCTL | MOD_LALT | MOD_LGUI), kc) // Left control alt and gui
#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/
+#define SCMD_T(kc) MT((MOD_LGUI | MOD_LSFT), kc)
+#define SWIN_T(kc) SCMD_T(kc)
// Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap
#define KC_HYPR HYPR(KC_NO)