aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_advanced_keycodes.md
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2018-03-02 02:49:50 +1100
committerskullydazed <skullydazed@users.noreply.github.com>2018-03-01 07:49:50 -0800
commitb713feb6f2031a3d7493791b2f549636c026de9e (patch)
tree05991e0794a4717961039e02bf9c83c5b0d55040 /docs/feature_advanced_keycodes.md
parentd7f46f346685dc772ff3f13890d70865d65d748c (diff)
downloadqmk_firmware-b713feb6f2031a3d7493791b2f549636c026de9e.tar.gz
qmk_firmware-b713feb6f2031a3d7493791b2f549636c026de9e.zip
Add a little aside explaining that shifted keys with mod-tap doesn't work (#2446)
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r--docs/feature_advanced_keycodes.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md
index 0e22154f6..ceee7fad1 100644
--- a/docs/feature_advanced_keycodes.md
+++ b/docs/feature_advanced_keycodes.md
@@ -116,7 +116,7 @@ These are the values you can use for the `mod` in `MT()` and `OSM()`:
116 * MOD_HYPR 116 * MOD_HYPR
117 * MOD_MEH 117 * MOD_MEH
118 118
119These can also be combined like `MOD_LCTL | MOD_LSFT` e.g. `MT(MOD_LCTL | MOD_LSFT, KC_ESC)` which would activate Control and Shift when held, and send Escape when tapped. Note however, that you cannot mix right and left side modifiers. 119These can also be combined like `MOD_LCTL | MOD_LSFT` e.g. `MT(MOD_LCTL | MOD_LSFT, KC_ESC)` which would activate Control and Shift when held, and send Escape when tapped.
120 120
121We've added shortcuts to make common modifier/tap (mod-tap) mappings more compact: 121We've added shortcuts to make common modifier/tap (mod-tap) mappings more compact:
122 122
@@ -129,6 +129,12 @@ We've added shortcuts to make common modifier/tap (mod-tap) mappings more compac
129 * `LCAG_T(kc)` - is CtrlAltGui when held and *kc* when tapped 129 * `LCAG_T(kc)` - is CtrlAltGui when held and *kc* when tapped
130 * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift. 130 * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift.
131 131
132{% hint style='info' %}
133Due to the way that keycodes are structured, any modifiers specified as part of `kc`, such as `LCTL()` or `KC_LPRN`, will only activate when held instead of tapped.
134
135Additionally, if there is at least one right modifier, any other modifiers will turn into their right equivalents, so it is not possible to "mix and match" the two.
136{% endhint %}
137
132# One Shot Keys 138# One Shot Keys
133 139
134One shot keys are keys that remain active until the next key is pressed, and then are released. This allows you to type keyboard combinations without pressing more than one key at a time. These keys are usually called "Sticky keys" or "Dead keys". 140One shot keys are keys that remain active until the next key is pressed, and then are released. This allows you to type keyboard combinations without pressing more than one key at a time. These keys are usually called "Sticky keys" or "Dead keys".