-
Notifications
You must be signed in to change notification settings - Fork 129
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
Bug: kanata wintercept doesnt activate keys like brightness keys #532
Comments
Hi @flamingjupiter, can you try this configuration and see if that helps? |
I tried it, but it returns the hwid as a big sequence of 0, 0, 0,... I guess I cant do anything with it, right? On that note, I saw #108 and that made me think if its possible to fix or use another way to get the hwid of the devices, because kanata shows 0, 0, 0,... for all my devices, but all of them have their VID/PID and/or Handle differentially listed on a software that uses the interception driver as well: https://github.com/evilC/AutoHotInterception
|
For now, using a full array of zeroes could work fine - it just means devices can't be differentiated, but maybe that's not a problem for you. |
Oh, I didn't know that could be used. I just have to put that long sequence of zeroes on the config? And yeah, that's not a problem for me |
Yep, that should work. |
I'm having a weird bug. Whenever I press mbck and/or mfwd, every application window and the taskbar becomes irresponsive to mouse input, except for the active window I/kanata sent the mbck and mfwd. I need to press ctrl+alt+del to bring that page with options like opening task manager and closing it to unlock mouse input on those windows that were blocked. Here are the logs:
|
Doesnt seem to happen when I use any other mouse button or action I have nothing on my defcfg (everything there is commented out with ;;, including windows-interception-mouse-hwid) |
Thanks for the bug report @flamingjupiter, the bug is fixed in #533 |
Thanks!! Tested and seems to be working normally Is it possible to add keys like homepage, email, etc to kanata wintercept? Or the interception driver doesn't recognize those keys? |
They might be recognizable, but not sure. Some keys might be and others may not. You can try pressing them while |
What about cases like this?
|
Hm yea in this case it's a key that Kanata does not know how to translate for sending to an interception code. A potential workaround for this might be to use https://github.com/jtroo/kanata/blob/main/docs/config.adoc#arbitrary-code , and send the correct number for the key. |
That's a nice idea, thanks. That covers sending the key to other applications. I guess there's no way for kanata wintercept to react to those keys, am I right? I can send it it to activate some hotkey on another program, but I can't press it to activate an action in kanata e.g. layer-while-held layer_abc. Is that so? |
Yep, that's correct |
Thanks for helping and explaining to me, as always :) |
I think there's nothing actionable remaining in this ticket so will close this issue. Other issues document and track potentially missing keys for Interception, so no need to have duplicates. |
Requirements
Describe the bug
Just as the title says, kanata wintercept doesnt activate actions mapped to mouse buttons. You can map any actions or defalias to any mouse button and kanata wintercept loads normally, but when you press any mouse button it doesn't activate any action and the button native function activates instead.
Relevant kanata config
No response
To Reproduce
Expected behavior
I wanted to map actions to mouse buttons. In this case, map a layer-while-held to the back (mbck) mouse button.
The use case is: like most people, I use a mouse with my right hand. The left hand always stays on the left half of the keyboard, while the right hand alternates between the right half of the keyboard and the mouse. Using shortcuts and keeping your hands on the keyboard is faster, but sometimes you need to use the mouse to operate the cursor e.g. when you need speed and precision for a continuous period of time (so that mouse move action and alternatives wont cut it)
I want to be able to use certain mouse buttons to do actions in those times when I need to let go of the right half of the keyboard and use the mouse. The mbck and mfwd mouse buttons are easily mappable to somewhere on the keyboard, preferably on the left half, so you can always use regardless if the right hand is on the keyboard or mouse, with no drawbacks or loss of functionality
Also, a lot of mouses have extra buttons, usually programmable. They come in two kinds, those with onboard memory and those without. Even if kanata wintercept doesn't support mouse buttons it's easy to do it with mouses with onboard memory: just remap/program the mouse button to some unused key (F13~F24; etc) and map that key to an action in kanata
However it's not possible to do that with mouses that don't possess onboard memory. Kanata wintercept intercepts the button before it is remapped by the software used to remap the mouse buttons
My mouse doesn't have onboard memory, and I'm in search of another mouse but the options with onboard memory usually lacks other important features I'm looking for. They tend to be more expensive as well
Being able to assign actions to mouse buttons would be a huge improvement for me. I don't know if it's a bug or something that just isn't implemented, but I chose to flag it as a bug because the config accepts mapping the mouse buttons to actions, but they don't occur
Kanata version
kanata 1.4.0
Debug logs
No response
Operating system
Windows 11
Additional context
No response
The text was updated successfully, but these errors were encountered: