Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

Disable cursor hover interaction when the panel first shows

Open PRO-2684 opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe.

I'm always frustrated when I open the panel and my cursor, on the center of the screen, chooses an item for me. Note that this behavior is unintended, because I haven't moved my mouse at all. I've got to use keyboard to navigate to the top of the list.

Describe the solution you'd like

Disable cursor hover interaction when the user opened the launcher, and enable it again when user has moved or clicked their mouse.

Describe alternatives you've considered

Hovering over an item doesn't select it, just hint that it will be invoked if you click. Like in the screenshot of Windows Explorer below, my cursor was hovering over "map.jpeg". But when I hit enter, "alternative.jpg" will be opened instead. Themes will have to be updated though.

alternative

Additional context

Here's a gif that will address the issue (hopefully):

record

When I type "c", it is most likely that I'd like to run Clash, but my cursor made the launcher select the third item, LocalSend.

PRO-2684 avatar Aug 30 '23 08:08 PRO-2684

Hey @onesounds you have any thoughts on this?

Garulf avatar Aug 31 '23 13:08 Garulf

Hey @onesounds you have any thoughts on this?

I agree that this is a problem. It needs to be fixed. This also happens in keyboard scrolling situations, so we need proper logic. I tried to fix it before and failed.

onesounds avatar Aug 31 '23 13:08 onesounds

ref : https://stackoverflow.com/questions/5235118/wpf-listbox-scrolling-with-keyboard-issue

onesounds avatar Aug 31 '23 13:08 onesounds

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 16 '23 01:10 github-actions[bot]

This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.

github-actions[bot] avatar Oct 24 '23 01:10 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 11 '23 01:12 github-actions[bot]

Would it an approach to disable the mouse (cursor) when panel opens, and have it be re-enabled if the user moves it? Or separate the interactions, so that only the mouse click runs what is under the cursor and enter runs what has been selected with the keyboard?

CartCaved avatar Feb 28 '24 08:02 CartCaved

I think this is the same issue in https://github.com/Flow-Launcher/Flow.Launcher/issues/2595.

@PRO-2684 or @CartCaved could you disable animations and see if the same problem still occurs

jjw24 avatar Mar 08 '24 13:03 jjw24

I think this is the same issue in #2595.

@PRO-2684 or @CartCaved could you disable animations and see if the same problem still occurs

Disabling animation indeed solves the issue as a temporary workaround.

PRO-2684 avatar Mar 08 '24 14:03 PRO-2684

Since we found the root cause in 2595, let's track this issue over there instead.

jjw24 avatar Mar 09 '24 11:03 jjw24