The feeling/handling is exactly the same as with Hyperkey or a normal shortcut with a modifier.
The (de)blocking of the keyboard works absolutely reliable (for me). I guess this is much more reliable for everyone than using four virtual modifiers.
Caps Lock retains its actual function when the key is pressed alone.
one for caps lock pressed down -> keyboard input blocked
one for caps lock released (up) -> keyboard input released/allowed -> toggle caps lock (this is because caps lock would also get turned on)
I thought I was the only one who configured such weird stuff.
Mm, shouldn't this work with a simple down/up key sequence? If the sequence is not interrupted down/up esc is triggered. But if the sequence is interrupted by a letter between down/up, esc should not be triggered. As far as I know.
okay, i got it to work, the trick was adding a 0.3s delay to the keyboard input action. for anybody visiting months or years later, this is my config for the leader key
Yes, I was just about to experiment with the same thing. Otherwise you would have had to set it up differently ... something with the minimum time of the sequence.
What happens if you add esc to the "up" sequence at the end. This would mean that esc is always triggered when the key is released ... Is that a problem? Nothing dramatic should happen.
You are welcome. Let me try something else... I'll get back to you
Try this setting for esc. This means that esc is only triggered if caps is held for at least 0.3 s and no other key is pressed between down/up. If 0.3 is too long, you can also shorten it.
Hey, Frank1, I tried a variety of combinations like that but nothing reliably works. It's either Esc that gets triggered consistently or Keyboard Input Blocked.
Nah, that was not it. That would have caused trouble as that would mean Esc is triggered everytime I press Caps, which would mean it would throw me out of input fields.
But hey, what gives, I finally made it work and somehow it is my original solution.
The only change I made was add a 0.2s delay for the Keyboard Input Block key sequence, meaning if Caps Lock is pressed and released, it sends Escape . If Caps Lock is held for 0.2s with no further input, Keyboard Input is Blocked.