mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-04-13 00:26:56 -05:00
feat(behaviors): hold while undecided
This commit is contained in:
committed by
Pete Johanson
parent
104c73d303
commit
c007d60357
@@ -83,6 +83,18 @@ For example, if you press `&mt LEFT_SHIFT A` and then release it without pressin
|
||||
};
|
||||
```
|
||||
|
||||
#### `hold-while-undecided`
|
||||
|
||||
If enabled, the hold behavior will immediately be held on hold-tap press, and will release before the behavior is sent in the event the hold-tap resolves into a tap. With most modifiers this will not affect typing, and is useful for using modifiers with the mouse.
|
||||
|
||||
:::note Alt/Win/Cmd behavior
|
||||
In some applications/desktop environments, pressing Alt keycodes by itself will have its own behavior like activate a menu and Gui keycodes will bring up the start menu or an application launcher.
|
||||
:::
|
||||
|
||||
#### `hold-while-undecided-linger`
|
||||
|
||||
If your tap behavior activates the same modifier as the hold behavior, and you want to avoid a double tap when transitioning from the hold to the tap, you can use `hold-while-undecided-linger`. When enabled, the hold behavior will continue to be held until _after_ the tap behavior is released. For example, if the hold is `&kp LGUI` and the tap is `&sk LGUI`, then with `hold-while-undecided-linger` enabled, the host will see `LGUI` held down continuously until the sticky key is finished, instead of seeing a release and press when transitioning from hold to sticky key.
|
||||
|
||||
#### Positional hold-tap and `hold-trigger-key-positions`
|
||||
|
||||
Including `hold-trigger-key-positions` in your hold-tap definition turns on the positional hold-tap feature. With positional hold-tap enabled, if you press any key **NOT** listed in `hold-trigger-key-positions` before `tapping-term-ms` expires, it will produce a tap.
|
||||
|
||||
Reference in New Issue
Block a user