How Exactly Does tap-hold and its Variants Work? #704
Replies: 2 comments 3 replies
-
The doc describes what they do: https://github.com/jtroo/kanata/blob/main/docs/config.adoc#tap-hold Could you point to specific parts of the doc that could use improvement?
I can't think of a convenient way to do this off the top of my head, the way that I immediately think of is to use |
Beta Was this translation helpful? Give feedback.
-
what is the use case for pressing control if it can't be combined with other keys? Maybe an example would help. |
Beta Was this translation helpful? Give feedback.
-
I am a bit confused on how tap-hold and its variants work. More specifically, what exactly is the tap timeout and hold timeout?
If I were to set the tap timeout to 1 and hold timeout to 1000, what is the behaviour? What if I set them both to 1? How about if I set them both to 1?
Here is my config:

Ignore the comment saying that ctrl is pressed as soon as caps is pressed, I later removed that because it was too convoluted.
My desired behaviour is for programming. If I press and release caps, I instantly want to get an Esc input. If while caps is pressed I press another key, that key will come from my symbol layer. For a little more context, "utl" is defined as "utl (layer-toggle utility).
This approach works but has some problems. If I press things too fast, I end up just triggering the hold behaviour, even though I want the tap behaviour. Any advice?
Update:
I went back to my config with fresh eyes and found a solution that has not given me any problems (yet).
My new definition of cap is (multi @UTL (tap-hold-press 500 500 esc XX)). Although I still would like to know what the "500 500" is doing in this case, and if there is any way to make the ctrl key be pressed while held until another key is pressed (in which case the ctrl key is released and another is pressed)
Beta Was this translation helpful? Give feedback.
All reactions