mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
(feature) Add &to keycode/behavior (#489)
feat(behaviors): Add `&to` behavior to switch to a layer.
This commit is contained in:
@@ -57,6 +57,21 @@ Example:
|
||||
< LOWER SPACE
|
||||
```
|
||||
|
||||
## To Layer
|
||||
|
||||
The "to layer" behavior enables a layer and disables _all_ other layers _except_ the default layer.
|
||||
|
||||
### Behavior Binding
|
||||
|
||||
- Reference: `&to`
|
||||
- Parameter: The layer number to enable, e.g. `1`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
&to 3
|
||||
```
|
||||
|
||||
## Toggle Layer
|
||||
|
||||
The "toggle layer" behavior enables a layer until the layer is manually disabled.
|
||||
|
||||
Reference in New Issue
Block a user