forked from kofal.net/zmk
refactor(docs): Change behavior to behaviors
Makes a better URL.
This commit is contained in:
42
docs/docs/behaviors/mod-tap.md
Normal file
42
docs/docs/behaviors/mod-tap.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: Mod-Tap Behavior
|
||||
sidebar_label: Mod-Tap
|
||||
---
|
||||
|
||||
## Summary
|
||||
|
||||
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 you press another key within the 200ms, the 'mod' behavior is also activated.
|
||||
|
||||
## Mod-Tap
|
||||
|
||||
The Mod-Tap behavior either acts as a held modifier, or as a tapped keycode.
|
||||
|
||||
### Behavior Binding
|
||||
|
||||
- Reference: `&mt`
|
||||
- Parameter #1: The keycode to be sent when activating as a modifier, e.g. `LSHFT`
|
||||
- Parameter #2: The keycode to sent when used as a tap, e.g. `A`, `B`.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
&mt LSHFT A
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
You can configure a different tapping term in your keymap:
|
||||
|
||||
```
|
||||
&mt {
|
||||
tapping_term_ms = <400>;
|
||||
};
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
...
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user