diff options
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r-- | docs/feature_advanced_keycodes.md | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md index 98c7f8451..37a3d43fc 100644 --- a/docs/feature_advanced_keycodes.md +++ b/docs/feature_advanced_keycodes.md | |||
@@ -60,21 +60,21 @@ Sometimes, you might want to switch between layers in a macro or as part of a ta | |||
60 | 60 | ||
61 | These allow you to combine a modifier with a keycode. When pressed, the keydown event for the modifier, then `kc` will be sent. On release, the keyup event for `kc`, then the modifier will be sent. | 61 | These allow you to combine a modifier with a keycode. When pressed, the keydown event for the modifier, then `kc` will be sent. On release, the keyup event for `kc`, then the modifier will be sent. |
62 | 62 | ||
63 | |Key |Aliases |Description | | 63 | |Key |Aliases |Description | |
64 | |----------|----------------------|----------------------------------------------------| | 64 | |----------|-------------------------------|----------------------------------------------------| |
65 | |`LCTL(kc)`| |Hold Left Control and press `kc` | | 65 | |`LCTL(kc)`|`C(kc)` |Hold Left Control and press `kc` | |
66 | |`LSFT(kc)`|`S(kc)` |Hold Left Shift and press `kc` | | 66 | |`LSFT(kc)`|`S(kc)` |Hold Left Shift and press `kc` | |
67 | |`LALT(kc)`| |Hold Left Alt and press `kc` | | 67 | |`LALT(kc)`|`A(kc)` |Hold Left Alt and press `kc` | |
68 | |`LGUI(kc)`|`LCMD(kc)`, `LWIN(kc)`|Hold Left GUI and press `kc` | | 68 | |`LGUI(kc)`|`G(kc)`, `LCMD(kc)`, `LWIN(kc)`|Hold Left GUI and press `kc` | |
69 | |`RCTL(kc)`| |Hold Right Control and press `kc` | | 69 | |`RCTL(kc)`| |Hold Right Control and press `kc` | |
70 | |`RSFT(kc)`| |Hold Right Shift and press `kc` | | 70 | |`RSFT(kc)`| |Hold Right Shift and press `kc` | |
71 | |`RALT(kc)`|`ALGR(kc)` |Hold Right Alt and press `kc` | | 71 | |`RALT(kc)`|`ALGR(kc)` |Hold Right Alt and press `kc` | |
72 | |`RGUI(kc)`|`RCMD(kc)`, `LWIN(kc)`|Hold Right GUI and press `kc` | | 72 | |`RGUI(kc)`|`RCMD(kc)`, `LWIN(kc)` |Hold Right GUI and press `kc` | |
73 | |`HYPR(kc)`| |Hold Left Control, Shift, Alt and GUI and press `kc`| | 73 | |`SGUI(kc)`|`SCMD(kc)`, `SWIN(kc)` |Hold Left Shift and GUI and press `kc` | |
74 | |`MEH(kc)` | |Hold Left Control, Shift and Alt and press `kc` | | 74 | |`LCA(kc)` | |Hold Left Control and Alt and press `kc` | |
75 | |`LCAG(kc)`| |Hold Left Control, Alt and GUI and press `kc` | | 75 | |`LCAG(kc)`| |Hold Left Control, Alt and GUI and press `kc` | |
76 | |`SGUI(kc)`|`SCMD(kc)`, `SWIN(kc)`|Hold Left Shift and GUI and press `kc` | | 76 | |`MEH(kc)` | |Hold Left Control, Shift and Alt and press `kc` | |
77 | |`LCA(kc)` | |Hold Left Control and Alt and press `kc` | | 77 | |`HYPR(kc)`| |Hold Left Control, Shift, Alt and GUI and press `kc`| |
78 | 78 | ||
79 | You can also chain them, for example `LCTL(LALT(KC_DEL))` makes a key that sends Control+Alt+Delete with a single keypress. | 79 | You can also chain them, for example `LCTL(LALT(KC_DEL))` makes a key that sends Control+Alt+Delete with a single keypress. |
80 | 80 | ||
@@ -110,20 +110,20 @@ For convenience, QMK includes some Mod-Tap shortcuts to make common combinations | |||
110 | |Key |Aliases |Description | | 110 | |Key |Aliases |Description | |
111 | |------------|-----------------------------------------------------------------|-------------------------------------------------------| | 111 | |------------|-----------------------------------------------------------------|-------------------------------------------------------| |
112 | |`LCTL_T(kc)`|`CTL_T(kc)` |Left Control when held, `kc` when tapped | | 112 | |`LCTL_T(kc)`|`CTL_T(kc)` |Left Control when held, `kc` when tapped | |
113 | |`RCTL_T(kc)`| |Right Control when held, `kc` when tapped | | ||
114 | |`LSFT_T(kc)`|`SFT_T(kc)` |Left Shift when held, `kc` when tapped | | 113 | |`LSFT_T(kc)`|`SFT_T(kc)` |Left Shift when held, `kc` when tapped | |
115 | |`RSFT_T(kc)`| |Right Shift when held, `kc` when tapped | | ||
116 | |`LALT_T(kc)`|`ALT_T(kc)` |Left Alt when held, `kc` when tapped | | 114 | |`LALT_T(kc)`|`ALT_T(kc)` |Left Alt when held, `kc` when tapped | |
117 | |`RALT_T(kc)`|`ALGR_T(kc)` |Right Alt when held, `kc` when tapped | | ||
118 | |`LGUI_T(kc)`|`LCMD_T(kc)`, `LWIN_T(kc)`, `GUI_T(kc)`, `CMD_T(kc)`, `WIN_T(kc)`|Left GUI when held, `kc` when tapped | | 115 | |`LGUI_T(kc)`|`LCMD_T(kc)`, `LWIN_T(kc)`, `GUI_T(kc)`, `CMD_T(kc)`, `WIN_T(kc)`|Left GUI when held, `kc` when tapped | |
116 | |`RCTL_T(kc)`| |Right Control when held, `kc` when tapped | | ||
117 | |`RSFT_T(kc)`| |Right Shift when held, `kc` when tapped | | ||
118 | |`RALT_T(kc)`|`ALGR_T(kc)` |Right Alt when held, `kc` when tapped | | ||
119 | |`RGUI_T(kc)`|`RCMD_T(kc)`, `RWIN_T(kc)` |Right GUI when held, `kc` when tapped | | 119 | |`RGUI_T(kc)`|`RCMD_T(kc)`, `RWIN_T(kc)` |Right GUI when held, `kc` when tapped | |
120 | |`C_S_T(kc)` | |Left Control and Shift when held, `kc` when tapped | | 120 | |`SGUI_T(kc)`|`SCMD_T(kc)`, `SWIN_T(kc)` |Left Shift and GUI when held, `kc` when tapped | |
121 | |`MEH_T(kc)` | |Left Control, Shift and Alt when held, `kc` when tapped| | 121 | |`LCA_T(kc)` | |Left Control and Alt when held, `kc` when tapped | |
122 | |`LCAG_T(kc)`| |Left Control, Alt and GUI when held, `kc` when tapped | | 122 | |`LCAG_T(kc)`| |Left Control, Alt and GUI when held, `kc` when tapped | |
123 | |`RCAG_T(kc)`| |Right Control, Alt and GUI when held, `kc` when tapped | | 123 | |`RCAG_T(kc)`| |Right Control, Alt and GUI when held, `kc` when tapped | |
124 | |`C_S_T(kc)` | |Left Control and Shift when held, `kc` when tapped | | ||
125 | |`MEH_T(kc)` | |Left Control, Shift and Alt when held, `kc` when tapped| | ||
124 | |`HYPR_T(kc)`|`ALL_T(kc)` |Left Control, Shift, Alt and GUI when held, `kc` when tapped - more info [here](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)| | 126 | |`HYPR_T(kc)`|`ALL_T(kc)` |Left Control, Shift, Alt and GUI when held, `kc` when tapped - more info [here](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)| |
125 | |`SGUI_T(kc)`|`SCMD_T(kc)`, `SWIN_T(kc)` |Left Shift and GUI when held, `kc` when tapped | | ||
126 | |`LCA_T(kc)` | |Left Control and Alt when held, `kc` when tapped | | ||
127 | 127 | ||
128 | ## Caveats | 128 | ## Caveats |
129 | 129 | ||