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

Key pressed event missed due to multiple keycodes for one keysym #28

Open
Lieunoir opened this issue Oct 12, 2022 · 1 comment
Open

Comments

@Lieunoir
Copy link

I had trouble making the deamon react to a key press from XF86AudioPlay coming from a bluetooth headset, due to this keysym have multiple codes associated (had 172 by default and the headset sent a 208).

It seems the reason is the same as described here : electron/electron#2210 , in short XKeyGrab is only used with code 172 thus code 208 aren't registered.

I manually added a XKeyGrab for the code 208 and it worked, but I haven't found a more elegant solution (not really familiar with Xlib). I have seen people use xbindkeys to detect key pressed event with this code and map it to send a XF86AudioPlay key pressed event with xdotool, maybe lefthk could also have some way to configure keys by code?

@dmgolembiowski
Copy link

@Lieunoir I'd like to replicate your setup (both failing and working) because I want to support multiple combos -> one action on my system. Could you share any files you changed with before/after states?

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