]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - Key-Functions.md
Updated Key Functions (markdown)
[qmk_firmware.git] / Key-Functions.md
index 9b2729cd09cecd0cc40cfea47d8985d3740a34ae..6779982c384e3a13ce5a84f0f82ea0a86f4911c0 100644 (file)
@@ -67,22 +67,27 @@ 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:
 
   * `CTL_T(kc)` - is LCTL when held and *kc* when tapped
   * `SFT_T(kc)` - is LSFT when held and *kc* when tapped
   * `ALT_T(kc)` - is LALT when held and *kc* when tapped
+  * `ALGR_T(kc)` - is AltGr when held and *kc* when tapped
   * `GUI_T(kc)` - is LGUI when held and *kc* when tapped
   * `ALL_T(kc)` - is Hyper (all mods) when held and *kc* when tapped. To read more about what you can do with a Hyper key, see [this blog post by Brett Terpstra](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)
   * `LCAG_T(kc)` - is CtrlAltGui when held and *kc* when tapped