aboutsummaryrefslogtreecommitdiff
path: root/docs/keycodes.md
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-12-14 07:51:17 -0800
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-12-14 07:51:17 -0800
commit8c3054777a9d86613fd9d73cca1fdfaee54a6eff (patch)
treee2a8c5859bcbb4645c1392255a5f00bc9b82361d /docs/keycodes.md
parent6c6bbff600cd37416bdf067ac67971c58136129f (diff)
downloadqmk_firmware-8c3054777a9d86613fd9d73cca1fdfaee54a6eff.tar.gz
qmk_firmware-8c3054777a9d86613fd9d73cca1fdfaee54a6eff.zip
Docs: Remove duplicate layer block in keycodes.md (#4621)
* Docs: Remove duplicate layer block in keycodes.md Reorder and add OSL * remove glitch Co-Authored-By: drashna <drashna@live.com>
Diffstat (limited to 'docs/keycodes.md')
-rw-r--r--docs/keycodes.md31
1 files changed, 10 insertions, 21 deletions
diff --git a/docs/keycodes.md b/docs/keycodes.md
index d12a85aa1..468b59f84 100644
--- a/docs/keycodes.md
+++ b/docs/keycodes.md
@@ -288,15 +288,16 @@ This is a reference only. Each group of keys links to the page documenting their
288 288
289## [Layer Switching](feature_advanced_keycodes.md#switching-and-toggling-layers) 289## [Layer Switching](feature_advanced_keycodes.md#switching-and-toggling-layers)
290 290
291|Key |Description | 291|Key |Description |
292|-----------------|---------------------------------------------------------------------| 292|----------------|----------------------------------------------------------------------------------|
293|`DF(layer)` |Switches the default layer | 293|`DF(layer)` |Set the base (default) layer |
294|`MO(layer)` |Momentarily activates layer, switches off when you let go | 294|`MO(layer)` |Momentarily turn on `layer` when pressed (requires `KC_TRNS` on destination layer)|
295|`LM(layer, mod)` |As `MO(layer)` but with `mod` active | 295|`OSL(layer)` |Momentarily activates `layer` until a key is pressed. See [One Shot Keys](https://docs.qmk.fm/#/feature_advanced_keycodes?id=one-shot-keys) for details. |
296|`LT(layer, kc)` |Momentarily activates layer if held, sends kc if tapped | 296|`LM(layer, mod)`|Momentarily turn on `layer` (like MO) with `mod` active as well.
297|`TG(layer)` |Toggles the layer (enables it if no active, and vise versa) | 297|`LT(layer, kc)` |Turn on `layer` when held, `kc` when tapped |
298|`TO(layer)` |Activates layer and deactivates all other layers | 298|`TG(layer)` |Toggle `layer` on or off |
299|`TT(layer)` |Momentarily activates layer if held, toggles it if tapped repeatedly | 299|`TO(layer)` |Turn on `layer` when pressed |
300|`TT(layer)` |Normally acts like MO unless it's tapped multiple times, which toggles `layer` on |
300 301
301## [Mouse Keys](feature_mouse_keys.md) 302## [Mouse Keys](feature_mouse_keys.md)
302 303
@@ -431,18 +432,6 @@ This is a reference only. Each group of keys links to the page documenting their
431|`KC_RIGHT_ANGLE_BRACKET`|`KC_RABK`, `KC_GT` |`>` | 432|`KC_RIGHT_ANGLE_BRACKET`|`KC_RABK`, `KC_GT` |`>` |
432|`KC_QUESTION` |`KC_QUES` |`?` | 433|`KC_QUESTION` |`KC_QUES` |`?` |
433 434
434## [Switching and Toggling Layers](feature_advanced_keycodes.md#switching-and-toggling-layers)
435
436|Key |Description |
437|----------------|----------------------------------------------------------------------------------|
438|`LT(layer, kc)` |Turn on `layer` when held, `kc` when tapped |
439|`TO(layer)` |Turn on `layer` when pressed |
440|`MO(layer)` |Momentarily turn on `layer` when pressed (requires `KC_TRNS` on destination layer)|
441|`DF(layer)` |Set the base (default) layer |
442|`TG(layer)` |Toggle `layer` on or off |
443|`TT(layer)` |Normally acts like MO unless it's tapped multiple times, which toggles `layer` on |
444|`LM(layer, mod)`|Momentarily turn on `layer` (like MO) with `mod` active as well. |
445
446## [One Shot Keys](feature_advanced_keycodes.md#one-shot-keys) 435## [One Shot Keys](feature_advanced_keycodes.md#one-shot-keys)
447 436
448|Key |Description | 437|Key |Description |