refactor(behaviors): Add max-held tap-dance config (#2838)

refactor(behaviors): Add max-held tap-dance config

Add new `CONFIG_ZMK_BEHAVIOR_TAP_DANCE_MAX_HELD` config for reducing RAM
usage on more constrained devices.

refactor(behaviors): Move defaults to Kconfig.defaults
This commit is contained in:
Pete Johanson
2025-02-25 12:12:27 -07:00
committed by GitHub
parent 18d0d2f476
commit 209085da73
5 changed files with 49 additions and 5 deletions

View File

@@ -325,6 +325,12 @@ Creates a custom behavior that triggers a different behavior corresponding to th
See the [tap dance behavior](../keymaps/behaviors/tap-dance.mdx) documentation for more details and examples.
### Kconfig
| Config | Type | Description | Default |
| ---------------------------------------- | ---- | ---------------------------------------------- | ------- |
| `CONFIG_ZMK_BEHAVIOR_TAP_DANCE_MAX_HELD` | int | Maximum number of simultaneous held tap-dances | 10 |
### Devicetree
Definition file: [zmk/app/dts/bindings/behaviors/zmk,behavior-tap-dance.yaml](https://github.com/zmkfirmware/zmk/blob/main/app/dts/bindings/behaviors/zmk%2Cbehavior-tap-dance.yaml)