feat: Add config settings for sticky keys/hold-tap

* Add new Kconfig symbols to config max held sticky-keys/hold-taps
  and for max captured events during hold-tap resolution.
This commit is contained in:
Peter Johanson
2024-08-12 11:57:56 -06:00
committed by Pete Johanson
parent 2eff266f5b
commit 3fec690def
5 changed files with 56 additions and 5 deletions

View File

@@ -51,6 +51,13 @@ Creates a custom behavior that triggers one behavior when a key is held or a dif
See the [hold-tap behavior](../behaviors/hold-tap.mdx) documentation for more details and examples.
### Kconfig
| Config | Type | Description | Default |
| -------------------------------------------------- | ---- | --------------------------------------------------------------------------------------------- | ------- |
| `CONFIG_ZMK_BEHAVIOR_HOLD_TAP_MAX_HELD` | int | Maximum number of simultaneous held hold-taps. | 10 |
| `CONFIG_ZMK_BEHAVIOR_HOLD_TAP_MAX_CAPTURED_EVENTS` | int | Maximum number of system events to capture while deferring a hold or tap decision resolution. | 40 |
### Devicetree
Definition file: [zmk/app/dts/bindings/behaviors/zmk,behavior-hold-tap.yaml](https://github.com/zmkfirmware/zmk/blob/main/app/dts/bindings/behaviors/zmk%2Cbehavior-hold-tap.yaml)
@@ -227,6 +234,12 @@ Creates a custom behavior that triggers a behavior and keeps it pressed it until
See the [sticky key behavior](../behaviors/sticky-key.md) and [sticky layer behavior](../behaviors/sticky-layer.md) documentation for more details and examples.
### Kconfig
| Config | Type | Description | Default |
| ----------------------------------------- | ---- | ------------------------------------------------ | ------- |
| `CONFIG_ZMK_BEHAVIOR_STICKY_KEY_MAX_HELD` | int | Maximum number of simultaneous held sticky keys. | 10 |
### Devicetree
Definition file: [zmk/app/dts/bindings/behaviors/zmk,behavior-sticky-key.yaml](https://github.com/zmkfirmware/zmk/blob/main/app/dts/bindings/behaviors/zmk%2Cbehavior-sticky-key.yaml)