-
Notifications
You must be signed in to change notification settings - Fork 112
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
Feature request: make kanata read+process injected inputs that don't originate from itself #810
Comments
This works for me on Win11 using v1.5.0. Are you using a keyboard with combined f-key/media keys, and are using the f-keys? Test config and debug logs
|
I tried with both a keyboard with combined ( f-key/media ) and one without f-key. I've since used other keys and I'm happy. So I'm closing this. Thank you. |
Could this please be reopened? I have the same issue (keyboard with a dedicated row of media keys). They don't get recognized by default, although using aliases with numbers from the key tester work for OUTput (
|
As a note I still can't reproduce this. I tried using my laptop's builtin media keys mute volu vold as well as outputting the keys from interception and reading them again in llhook, and it works correctly for me 🤷 |
Do you remember what's different between the hook that's used in the windows_key_tester utility (which can detect presses) and kanata proper? Think this might be the easier way to track it |
They're just about the exact same code. The only thing I can think of is that your multimedia keys are somehow being injected instead of sent by the hardware, and thus is not read by kanata: kanata/windows_key_tester/src/llhook.rs Lines 62 to 64 in 33011ca
|
You're correct, they do weirdly show up as injected (why would hardware keys behave like software?) And I see in AHK log that they're also tagged as "artificial" (which tracks the same Could kanata do something like this - tag its own output in some other boolean field and ignore only that instead of ignoring all artificial events, which in this case leads to some real hardware input mascarading as software being ignored? |
Sure, something similar to my espanso patch might work: |
Requirements
Describe the bug
I've installed kanata via cargo:
cargo install kanata --features cmd
It works well for most keys, but not for the multimedia keys (pp prev next).
These keys do work on Linux.
I also tried windows_key_tester.exe, got some codes, and used deflocalkeys-win, but doesn't work either.
Any clue how to debug further ?
Thanks
Relevant kanata config
To Reproduce
Try to get any multimedia keys to remap, on Windows 11.
Expected behavior
.
Kanata version
1.5.0
Debug logs
Operating system
Windows 11
Additional context
No response
The text was updated successfully, but these errors were encountered: