lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
180 stars 135 forks source link

Optional support for auto-selection in Fancy Menu #2000

Closed tsujan closed 8 months ago

tsujan commented 8 months ago

Some users may prefer auto-selection on mouse-over. The default behavior of selecting by clicking is OK, IMO, but auto-selection can be added with time-outs from 50 ms to 1 sec, with 50-ms steps and 0 for disabling (=default);

tsujan commented 8 months ago

I started to work on this because, IMO, it has priority.

stefonarch commented 8 months ago

Something I like about runner is the first item from the results already selected, this isn't so in both menus, so for keyboard navigation (just hitting enter or maybe some arrow down first) this would be fine.

Just tested in the wing menu, selection on hover is the default and it's nice. Btw I think https://github.com/elviosak/plugin-wingmenu/issues/31 is related to the issue on debian with right click.

tsujan commented 8 months ago

The implementation was easy and finished; I'll make a PR after some tests.

Just tested in the wing menu, selection on hover is the default and it's nice.

I think the current behavior of Fancy Menu is good as the default — after all, we have Main Menu, which auto-selects like any other menu. But changing the default will be a piece of cake if needed.

Something I like about runner is the first item from the results already selected

If the filter text isn't empty, yes, we might want to select the first item. But it'll be the job of another PR if agreed about.