diff options
author | Jack & Erez <bulk@ezuk.org> | 2016-10-12 22:18:27 -0400 |
---|---|---|
committer | Erez Zukerman <ezukerman@godaddy.com> | 2016-10-12 22:18:27 -0400 |
commit | e27a754b70434de88a37c4a572e4ca5f7730ff58 (patch) | |
tree | e2b64bad2b358ff294a6d7bbb7514d3126d08489 /readme.md | |
parent | 698d02122b2f705eb57d177e567c059289c6d7f8 (diff) | |
download | qmk_firmware-e27a754b70434de88a37c4a572e4ca5f7730ff58.tar.gz |
[Jack & Erez] Simplifies and documents TO
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -379,6 +379,8 @@ Instead of using `FNx` when defining `ACTION_*` functions, you can use `F(x)` - `TG(layer)` - toggles a layer on or off. As with `MO()`, you should set this key as `KC_TRNS` in the destination layer so that tapping it again actually toggles back to the original layer. Only works upwards in the layer stack. +`TO(layer)` - Goes to a layer. This code is special, because it lets you go either up or down the stack -- just goes directly to the layer you want. So while other codes only let you go _up_ the stack (from layer 0 to layer 3, for example), `TO(2)` is going to get you to layer 2, no matter where you activate it from -- even if you're currently on layer 5. This gets activated on keydown (as soon as the key is pressed). + ### Fun with modifier keys |