-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Allow Mouse Keys in Shortcuts/Menu Activation #433
Comments
TLDR; We have several third-party tools for achieving this listed here. Hi there! Thanks for the suggestion. This would indeed be nice. However, this will be very hard to implement in a cross-platform manner. Something like this is not available in Electron or NodeJS. I think that without admin / root privileges or some additional daemon processes this will not be possible on Linux/Wayland. And on Windows and macOS it will at least require native modules with further dependencies. There is for instance iohook which we could look into. At some point, I'll do this, but for now there are other, more important things to do 😄 |
I too want that option |
Plus one for that feature! |
We now have a list of third-party tools in the documentation which you may use to open Kando using mouse buttons or in various other ways. If you find another cool tool, we can add it to the list as well! |
Suggest supporting mouse triggers For example, holding down the middle mouse button or the right mouse button to trigger the Pie menu. After the mouse moves to the target menu and the button is released, the menu command is triggered. The interactive experience will be very good, with a single mouse action completing the target. |
On windows I use AutoHotKey v2 with this scrip on front mouse button. The button work as usual on click, but on hold or movement it quickly opens kondo menu. It works by pressing hotkey with f18, so normally people will not be able to press it by accident. Hope it will help some users XButton2::
{
MouseGetPos &startX, &startY
triggered := false
while GetKeyState("XButton2", "P") {
MouseGetPos ¤tX, ¤tY
distance := Sqrt((currentX - startX) ** 2 + (currentY - startY) ** 2)
if (distance > 20 || A_TimeSinceThisHotkey > 300) { ; 20px move or 300ms
triggered := true
Send "{Ctrl Down}{Alt Down}{Shift Down}{F18}"
KeyWait "XButton2" ; Wait for release
Send "{Shift Up}{Alt Up}{Ctrl Up}"
break
}
Sleep 10 ; Reduce CPU usage
}
if (!triggered)
Send "{XButton2}"
return
} |
Mouse keys can't be currently used as a way to open a pie menu (this functionality can be done via using external tools to map a mouse key to a keyboard combination; naturally this is a little clunky but not impossible). Having this built in, perhaps as a separate setting, will be quite helpful in making mouse-oriented usage of the pie menus easier. This might especially be helpful for the tablet users, since stylus buttons count as mouse buttons and allowing mouse keys to trigger pie menus will especially be helpful in the context of a graphics tablet which generally doesn't use keyboard, or at least not in a convenient way.
The text was updated successfully, but these errors were encountered: