Update docs/docs/behaviors/soft-off.md

Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
This commit is contained in:
German Gutierrez 2024-07-12 14:04:19 +02:00 committed by GitHub
parent 38860ad9ad
commit 78eb970267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,16 +42,10 @@ By default, the keyboard will be turned off as soon as the key bound to the beha
#### Split Peripheral Off On Press #### Split Peripheral Off On Press
By default on split keyboards, `split-peripheral-off-on-press` is enabled. This means that while you hold down the key in the central (usually the left one), the peripheral (usually the right one) will be immediately off. By default on split keyboards, `split-peripheral-off-on-press` is enabled. This means that while you hold down the key in the central (usually the left one), the peripheral (usually the right one) will be immediately off.
If you want to disable this functionality, you can create a behavior, for example: If you want to disable this functionality, you can modify the behavior:
``` ```dts
/ { &soft_off {
behaviors { /delete-property/ split-peripheral-off-on-press;
soff: soft_off {
compatible = "zmk,behavior-soft-off";
#binding-cells = <0>;s
hold-time-ms = <5000>; // Only turn off if the key is held for 5 seconds or longer.
}; };
};
}
``` ```