Open jokesper opened 3 months ago
Some parts of the code expect separate press and release actions (, press-only
, release-only
tap-macro
, sub buttons in tap-hold
style, ...)
While others don't conform to this interface (tap-hold
style buttons, around-only
, around-when-alone
, sticky-key
).
So in truth we have different kinds of buttons which are not distinguised.
The perfect solution would probably be to implement some kind of type system and do type checking.
A (hopefully) temporary solution could be adding an optional extra tap
action which falls back (around
when using the other variants, only the tap button in the tap-hold
style).
The
tap-hold
style buttons only have a press action which adds a hook waiting for it's release. The problem is that said hook only work for keycodes. This is also a problem for the button in #859. There are multiple possible solutions: