Karabiner-Elements icon indicating copy to clipboard operation
Karabiner-Elements copied to clipboard

Problem with "Spacebar to modifiers if pressed with other keys"

Open ww7 opened this issue 3 years ago • 5 comments

With complex modification Spacebar to modifiers if pressed with other keys very often spacebar is not keyUp in time and false activations are triggered.

Which timeout settings can improve recognizing to_if_alone? If possible to set minimal keyDown delay?

I use spacebar as complex modifier (Cmd+Ctrl+Opt) and need to post a space if it pressed alone.

ww7 avatar Jan 27 '22 17:01 ww7

If it is possible to implement logic close to if_not_alone approach?

ww7 avatar Jan 27 '22 17:01 ww7

Seems I need option for minimum keydown delay or minimum timout of "not pressed any keys" before trigger.

ww7 avatar Jan 29 '22 17:01 ww7

Ah, seems I need to-if-held-down https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to-if-held-down/

ww7 avatar Jan 29 '22 17:01 ww7

Serhii, it is a really great idea. Did it work for you? Would you post the code here?

martin-hoger avatar Sep 08 '22 08:09 martin-hoger

Hey, @ww7 , did you manage to get this working fine with the to-if-held-down path? I like the idea of using the spacebar as a mod key, but I also find that it triggers too many false positives as well. Meanwhile, I'm still trusting caps as hyper.

ldebritto avatar Sep 22 '22 01:09 ldebritto

@martin-hoger @ldebritto Here is an example gist that I have been using for four years. I also make a PR to https://github.com/pqrs-org/KE-complex_modifications/pull/1436

tshu-w avatar Jul 23 '23 10:07 tshu-w