cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
349 stars 18 forks source link

Repeated Deadkey #114

Open crissNb opened 1 month ago

crissNb commented 1 month ago

Hi, thank you for your amazing software.

When using the deadkey feature and then holding a key, it only seems to be triggering the key once. Is there a way to make the keys repeated?

Here's my config

REWIRE TAB MOD10 TAB
COMBO Q [..&. .... ....] > deadkey(X)
COMBO deadkey-X H [] > moddedKey (LEFT + ....)

In the end I want to use TAB + Q (simultaneous press) as a modifier and then use H/J/K/L to act as arrow keys. With deadkey, it seems to be doing exactly what I wanted, but when I hold TAB + Q + H, it only triggers the left arrow once.

Maybe my approach is completely off, if you think there's a better approach to fulfill my needs then I'd also appreciate your suggestions. Setting Q as a modifier key and regular "Q" when tapping added too much delay and sometimes the key wasn't registering. Would there be a way to only set Q as a modifier key when TAB is currently pressed?

cajhin commented 1 month ago

You can't define "sticky" deadkeys, the deadkey state is always cleared after the next keypress. There's also no locking modifier like CapsLock, sorry.

My recommendation would be: a) if you touch type and need cursor control in between, nothing (IMO) beats [CapsLock] + [J,K,L] b) if you use cursor control exclusively, for extended time (like when playing a game), I would define an extra config that directly maps J->Left. Then you can switch configs back and forth with ESC+{number}, or define a shortcut that triggers configSwitch() (see https://github.com/cajhin/capsicain/wiki/Function%3A-configSwitch%28%29 )

edit: that said, why don't you simply use the combo Tab+H = Left? What would be the advantage of Tab+Q+H? like

REWIRE TAB MOD10 TAB
COMBO H [..&. .... ....] > key (LEFT)