Mention that TT needs 5 taps by default.
authorMaarten Dekkers <maartenn2001@gmail.com>
Sat, 27 May 2017 10:34:16 +0000 (12:34 +0200)
committerGitHub <noreply@github.com>
Sat, 27 May 2017 10:34:16 +0000 (12:34 +0200)
Also gave an example of defining the amount of taps needed.

Key-Functions.md

index 6779982c384e3a13ce5a84f0f82ea0a86f4911c0..955a2806109de44b7768f7c14c93f90929d10c67 100644 (file)
@@ -18,7 +18,7 @@ Instead of using `FNx` when defining `ACTION_*` functions, you can use `F(x)` -
 
 `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).
 
-`TT(layer)` - Layer Tap-Toggle. If you hold the key down, the layer becomes active, and then deactivates when you let go. And if you tap it, the layer simply becomes active (toggles on).
+`TT(layer)` - Layer Tap-Toggle. If you hold the key down, the layer becomes active, and then deactivates when you let go. And if you tap it, the layer simply becomes active (toggles on). It needs 5 taps by default, but you can set it by defining `TAPPING_TOGGLE`, for example, `#define TAPPING_TOGGLE 1` for just one tap.
 
 
 ### Fun with modifier keys
@@ -91,4 +91,4 @@ We've added shortcuts to make common modifier/tap (mod-tap) mappings more compac
   * `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
-  * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift.
\ No newline at end of file
+  * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift.