summaryrefslogtreecommitdiff
path: root/docs/feature_advanced_keycodes.md
diff options
context:
space:
mode:
authorBrian Choromanski <BrianChoromanski@gmail.com>2018-10-08 09:48:44 -0400
committerDrashna Jaelre <drashna@live.com>2018-10-09 10:27:03 -0700
commit04e28470bcf22b05ca2bd52746c2254cae281836 (patch)
treed540307e6eb024b88d885cd1fe8adeb4fc28d5a5 /docs/feature_advanced_keycodes.md
parent42add5450d453d734833a7b978e4ab6907ab1fe1 (diff)
downloadqmk_firmware-04e28470bcf22b05ca2bd52746c2254cae281836.tar.gz
qmk_firmware-04e28470bcf22b05ca2bd52746c2254cae281836.zip
Added OSL to list of layer toggles
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r--docs/feature_advanced_keycodes.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md
index 5f30359e0d..0f5b8618a8 100644
--- a/docs/feature_advanced_keycodes.md
+++ b/docs/feature_advanced_keycodes.md
@@ -27,6 +27,7 @@ These functions allow you to activate layers in various ways. Note that layers a
* `MO(layer)` - momentarily activates *layer*. As soon as you let go of the key, the layer is deactivated.
* `LM(layer, mod)` - Momentarily activates *layer* (like `MO`), but with modifier(s) *mod* active. Only supports layers 0-15 and the left modifiers.
* `LT(layer, kc)` - momentarily activates *layer* when held, and sends *kc* when tapped.
+* `OSL(layer)` - momentarily activates *layer* until the next key is pressed.
* `TG(layer)` - toggles *layer*, activating it if it's inactive and vice versa
* `TO(layer)` - activates *layer* and de-activates all other layers (except your default layer). This function is special, because instead of just adding/removing one layer to your active layer stack, it will completely replace your current active layers, uniquely allowing you to replace higher layers with a lower one. This is activated on keydown (as soon as the key is pressed).
* `TT(layer)` - Layer Tap-Toggle. If you hold the key down, *layer* is activated, and then is de-activated when you let go (like `MO`). If you repeatedly tap it, the layer will be toggled on or off (like `TG`). It needs 5 taps by default, but you can change this by defining `TAPPING_TOGGLE` -- for example, `#define TAPPING_TOGGLE 2` to toggle on just two taps.