keyd icon indicating copy to clipboard operation
keyd copied to clipboard

Overload causes both overloaded and new key to be executed.

Open error404seeker opened this issue 10 months ago • 2 comments

capslock = overload(control, esc)

When I tap capslock:

keyd virtual keyboard 0fac:0ade:efba1ddf leftcontrol down keyd virtual keyboard 0fac:0ade:efba1ddf leftcontrol up keyd virtual keyboard 0fac:0ade:efba1ddf esc down keyd virtual keyboard 0fac:0ade:efba1ddf esc up

Tapping capslock shouldn't emit leftcontrol.

error404seeker avatar Feb 20 '25 08:02 error404seeker

As mentioned in #938, this is by design. Is this causing a real problem?

rvaiya avatar Feb 21 '25 01:02 rvaiya

Yes. I had used the example config to use caps as ctrl and Esc.

  1. I am using Zen browser and setting shortcuts, I need to press Esc after I assign shortcuts. But since keyd sends Ctrl before esc, Zen browser takes and I can't assign shortcuts. This is just minor thing.

  2. I noticed this when I was trying to debug the Neovim case like in #938. I have been using neovim/keyd for years and never had problem with using Caps[Esc] button in normal cases. Now, I encountered this issue where it works 9 out of 10 times but fails 1 out of 10 times. To make sure that it isn't caused by double pressing, I just wrote a sentence in neovim and just pressed [i] and [caps] and found that it didn't work. I thought this was due to cosmic de. I had to work and couldn't waste time debugging. So, I installed Linux mint but the issue persisted.

But it is working now. I had switched to xcape in Linux x11 but tried keyd again. So, the problem with neovim is solved for now.

Beside, is there any way where I can make it that ctrl is not emitted when i just tap by using layer or other thing?

error404seeker avatar Feb 21 '25 04:02 error404seeker