forked from kofal.net/zmk
refactor(behaviors): Rename reset behavior.
* Upstream now has a node w/ label `reset` on many boards, so renaming our reset behavior node label to `sys_reset`.
This commit is contained in:
committed by
Pete Johanson
parent
4f2f9db1d4
commit
35a1c5a3d4
@@ -164,7 +164,7 @@ For anyone looking to contribute, you can find the [ZMK Firmware project](https:
|
||||
Some items listed in the last coming soon section are still under active development.
|
||||
|
||||
- A power profiler page for the website, to help users estimate their battery life for a given keyboard - [Nicell]
|
||||
- Behavior "locality", allowing improved split usage for things like `&reset`, and controlling external power and RGB underglow for both sides - [petejohanson]
|
||||
- Behavior "locality", allowing improved split usage for things like `&sys_reset`, and controlling external power and RGB underglow for both sides - [petejohanson]
|
||||
- More modular approach to external boards/shields, custom code, user keymaps, etc.
|
||||
- More shields and boards
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@ to the device
|
||||
|
||||
### Behavior Binding
|
||||
|
||||
- Reference: `&reset`
|
||||
- Reference: `&sys_reset`
|
||||
- Parameters: None
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
&reset
|
||||
&sys_reset
|
||||
```
|
||||
|
||||
## Bootloader Reset
|
||||
@@ -44,7 +44,7 @@ Example:
|
||||
|
||||
## Split Keyboards
|
||||
|
||||
Both basic and bootloader reset behaviors are source-specific: This means that it affects the side of the keyboard that contains the behavior binding for split keyboards. For example if you press a key with the `&reset` binding on the left half of the keyboard, the left half will be reset. If you want to be able to reset both sides you can put the bindings on both sides of the keyboard and activate it on the side you would like to reset.
|
||||
Both basic and bootloader reset behaviors are source-specific: This means that it affects the side of the keyboard that contains the behavior binding for split keyboards. For example if you press a key with the `&sys_reset` binding on the left half of the keyboard, the left half will be reset. If you want to be able to reset both sides you can put the bindings on both sides of the keyboard and activate it on the side you would like to reset.
|
||||
|
||||
:::note Peripheral invocation
|
||||
The peripheral side of the keyboard has to be paired and connected to the central side in order to be able to activate these behaviors, even if it is possible to trigger the behavior using only keys on that side. This is because the key bindings are processed on the central side which would then instruct the peripheral side to reset.
|
||||
|
||||
@@ -81,4 +81,5 @@ export const Codes = {
|
||||
export const Behaviors = {
|
||||
cp: "kp",
|
||||
inc_dec_cp: "inc_dec_kp",
|
||||
reset: "sys_reset",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user