kando-menu / kando

šŸ„§ The Cross-Platform Pie Menu.
https://ko-fi.com/schneegans
Other
3.03k stars 89 forks source link

When using Turbo Mode, have option to hide menu if key is released in root center #680

Open Crunchbits opened 1 week ago

Crunchbits commented 1 week ago

Description

Given that a big aspect of using turbo-mode is to not need to use the mouse click, it would be nice to be able to hide/dismiss a menu by releasing the activation hotkey. I know that the escape key also works to dismiss as well but I think releasing the hotkey is more intuitive.

If implemented I see 2 potential methods:

  1. If you want to enable this option while still being able to use Point-and-Click and Marking-Mode as an option then there would be a time required for the hotkey to be pressed so that a release would be considered as a dismiss of the menu. Pressing the hotkey shortly (before the set time) would not trigger the dismiss on release and allow you to use Point-and-Click and Marking-Mode.
  2. If you want to enable this option and only care/plan to use Turbo mode then there would be no time requirement and releasing the hotkey on the root center would instantly dismiss the menu. If you're using just Turbo mode this option will feel more intuitive and faster for dismissing than method 1. Downsides would include that using this feature you would not be able to click on the lower right gear icon or the upper left 'i' icon. If implemented those might need to be accessed in another manner such as with a shortcut.

I would personally prefer implementation 2 but can see that implementation 1 is more appealing if you like to use more than 1 activation method.

Affected Desktop Environments

All

Additional Information

No response

Schneegans commented 5 days ago

Hi there! Thanks for the suggestion, however I am not sure about this.

If I understand you right, the first variant would mean that I have to release all keys after opening the menu, then press a modifier again, and then the next key release in the root's center would dismiss the menu? If so, I think this is not very intuitive and wouldn't help in most cases.

The second variant could work, I guess. Yet it really would be an advanced feature.

yar2000T commented 4 days ago

Ye, I love this feature in new kando

Crunchbits commented 1 day ago

For the first variant I believe you understood correctly I'll admit I wasn't really considering the use of multiple keys as the menu shortcut, I think you're right that it might feel weird/not-intuitive with modifiers. But if you use one key as I do(ex. F1-F12, etc.) then I think it's pretty intuitive.

To clarify assume a setting called something like "dismissTimeout" set to 50 ms A) {F1 Down} {40ms} {F1 Up} = Shows menu on {F1 Down} and remains on menu to use Point-and-Click/Marking-Mode B) {F1 Down} {80ms} {F1 Up} = Shows menu on {F1 Down} but dismisses after if mouse cursor is on root center after {F1 Up}.

If the menu is already showing you can then dismiss it after with another (A) or go into turbo mode with (B) if held longer