Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload causes both overloaded and new key to be executed. #940

Open
error404seeker opened this issue Feb 20, 2025 · 2 comments
Open

Overload causes both overloaded and new key to be executed. #940

error404seeker opened this issue Feb 20, 2025 · 2 comments

Comments

@error404seeker
Copy link

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.

@rvaiya
Copy link
Owner

rvaiya commented Feb 21, 2025

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

@error404seeker
Copy link
Author

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 Capslock as escape doesn't work 'properly' in Neovim/Helix etc. #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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants