diff options
author | Simon Friis Vindum <simonfv@gmail.com> | 2017-03-19 14:00:50 +0100 |
---|---|---|
committer | Simon Friis Vindum <simonfv@gmail.com> | 2017-03-19 14:00:50 +0100 |
commit | 76b9a2662a75d65a47fe4ba6cb24bcad2c6acfb6 (patch) | |
tree | a10bedb654ae3c044b51f42fa9aa3be35b0c480d /Key-Functions.md | |
parent | 3c11a8d241b27eaab13e97319becb76867965c33 (diff) | |
download | qmk_firmware-76b9a2662a75d65a47fe4ba6cb24bcad2c6acfb6.tar.gz qmk_firmware-76b9a2662a75d65a47fe4ba6cb24bcad2c6acfb6.zip |
`MT` does work with right-hand side modifiers. See #1166.
Diffstat (limited to 'Key-Functions.md')
-rw-r--r-- | Key-Functions.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Key-Functions.md b/Key-Functions.md index 9b2729cd09..a5db223cce 100644 --- a/Key-Functions.md +++ b/Key-Functions.md @@ -67,16 +67,20 @@ The following shortcuts automatically add `LSFT()` to keycodes to get commonly u `MT(mod, kc)` - is *mod* (modifier key - MOD_LCTL, MOD_LSFT) when held, and *kc* when tapped. In other words, you can have a key that sends Esc (or the letter O or whatever) when you tap it, but works as a Control key or a Shift key when you hold it down. -These are the values you can use for the `mod` in `MT()` and `OSM()` (right-hand modifiers are not available for `MT()`): +These are the values you can use for the `mod` in `MT()` and `OSM()`: * MOD_LCTL * MOD_LSFT * MOD_LALT * MOD_LGUI + * MOD_RCTL + * MOD_RSFT + * MOD_RALT + * MOD_RGUI * MOD_HYPR * MOD_MEH -These 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. +These 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. We've added shortcuts to make common modifier/tap (mod-tap) mappings more compact: |