-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Better keyboard device detection for key support should be done. #126
Comments
Thank you for your interest in the project, I will look into the following keys and implement them tomorrow. |
https://docs.rs/evdev/latest/src/evdev/scancodes.rs.html |
From what evtest tells me, the key for XF86Launch1 is Line 345 in 04e5125
Both keys are in a separate device to the keyboard which does not contain an enter key:
If that check is modified so that this device is recognized as a keyboard by swhkd, (The modification I did for testing was just returning true except for swhkd virtual output devices, but that disabled my mouse :P ) |
That is because we use that function to get valid keyboard and then call kernel grab syscall, so when you hardcoded true, it grabbed your mouse too.
Understood. Do you have any ideas for better keyboard checking? Checking for key_enter is definitely not ideal. |
Maybe detecting if something is not a keyboard? (Detecting if it's a mouse or joystick, etc.) The only other type of detection I can think of is checking if it supports any possibly grabbable keys. |
Doesn't sound robust due to a couple reasons:
|
Afaik, key's aren't grab-able, output/input devices are. |
Version Information:
Linux laptop 5.17.8-arch1-1 #1 SMP PREEMPT Mon, 16 May 2022 20:45:27 +0000 x86_64 GNU/Linux
swhkd 1.2.0
Describe the bug:
XF86Display, XF86Launch1 keys are not unsupported
Expected behavior:
XF86Display, XF86Launch1 keys are supported
Actual behavior:
Lines 91-95:
To Reproduce:
Use
XF86Display
orXF86Launch1
key in config.Additional information:
From imported sxhkd config.
The text was updated successfully, but these errors were encountered: