summaryrefslogtreecommitdiff
path: root/docs/docs/behavior/mod-tap.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs/behavior/mod-tap.md')
-rw-r--r--docs/docs/behavior/mod-tap.md32
1 files changed, 23 insertions, 9 deletions
diff --git a/docs/docs/behavior/mod-tap.md b/docs/docs/behavior/mod-tap.md
index cae667e..068928a 100644
--- a/docs/docs/behavior/mod-tap.md
+++ b/docs/docs/behavior/mod-tap.md
@@ -1,16 +1,13 @@
---
-title: Mod-Tap
+title: Mod-Tap Behavior
+sidebar_label: Mod-Tap
---
## Summary
-The Mod-Tap behavior allows varying the effect of pressing and releasing a key position depending
-on whether it is used with other simultaneous key presses at the same time.
+The Mod-Tap sends a different keypress, if it's tapped or held. When you tap the key shortly, the first keycode is sent. If you hold the key for longer than 200ms, the second keycode is sent.
-If pressed and released independently, the Mod-Tap behavior will send the press and release events
-for the configure keycode. If pressed and held while another key is pressed and released, then
-the configured modifiers will be applied to that _other_ key press, and no press will be generated
-on the release of the Mod-Tap key.
+If you press another key within the 200ms, the 'mod' behavior is also activated.
## Mod-Tap
@@ -19,11 +16,28 @@ The Mod-Tap behavior either acts as a held modifier, or as a tapped keycode.
### Behavior Binding
- Reference: `&mt`
-- Parameter #1: The modifiers to be used when activating as a modifier, e.g. `MOD_LSFT`
+- Parameter #1: The keycode to be sent when activating as a modifier, e.g. `LSFT`
- Parameter #2: The keycode to sent when used as a tap, e.g. `A`, `B`.
Example:
```
-&mt MOD_LSFT A
+&mt LSFT A
```
+
+### Configuration
+
+You can configure a different tapping term in your keymap:
+
+```
+&mt {
+ tapping_term_ms = <400>;
+};
+
+/ {
+ keymap {
+ ...
+ }
+}
+```
+