Bug 382081 - Selection should only follow the mouse cursor when you move it.
Summary: Selection should only follow the mouse cursor when you move it.
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Application Dashboard (show other bugs)
Version: 5.10.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
: 383033 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-07-07 00:27 UTC by lctrgk
Modified: 2022-12-08 05:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lctrgk 2017-07-07 00:27:17 UTC
If you try to navigate the dashboard using the arrows on the keyboard and the mouse cursor happens to be on a point where it can change the selection of the grid, the selection comes back immediately to the element where the mouse cursor is. This makes impossible to navigate the grid only with the keyboard until you put aside the mouse cursor on a place where it can't toggle the selection of any element of the grid.

This problem doesn't happen on the filter list on the right of the dashboard, if you put the mouse cursor over the list you can navigate the list normally and the selection only changes if you move the mouse.

How to reproduce:
1.-Open the dashboard.
2.-Put the mouse cursor on any place where it can highlight any element of any of the grid views of the dashboard.

Current behavior:
If you try to navigate the grid with the arrows of the keyboard the selection comes back to where the mouse cursor is.

Expected behavior:
Even if the mouse is highlighting an element of the grid if you should be able to navigate the grid with the arrows of the keyboard and the selection should only change if the user moves the mouse.
Comment 1 Eike Hein 2017-07-08 09:08:42 UTC
This must be a bug either in MouseEventListener or in Qt - it's happening because after every keyboard event, MouseEventListener.onPositionChanged fires (with unchanged coordinates).
Comment 2 Kai Uwe Broulik 2017-07-08 13:54:27 UTC
I think this is a deliberate change in Qt so mouse position / hover state is re-evaluated if the item changes underneath the mouse without the mouse moving. I had the same issue in KRunner where suddenly it would select results under the mouse as you typed.
Comment 3 lctrgk 2017-07-08 21:49:33 UTC
Thanks a lot for your answers. If you need for me to do anything that can help you just tell me.
Comment 4 Eike Hein 2017-07-09 08:16:09 UTC
Kai: How did you solve it in KRunner? I can cache and compare the coordinates locally but holy fuck writing "did the position actually change in this onPositionChanged" code is frustrating.
Comment 5 Kai Uwe Broulik 2017-07-09 12:35:22 UTC
See https://phabricator.kde.org/D5490
Comment 6 Eike Hein 2017-07-10 07:13:37 UTC
Can we move MouseHelper somewhere generic then so we can reuse this in Dash?
Comment 7 Christoph Feck 2017-08-28 22:39:04 UTC
*** Bug 383033 has been marked as a duplicate of this bug. ***
Comment 8 Justin Zobel 2022-11-08 06:50:19 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 9 Bug Janitor Service 2022-11-23 05:14:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2022-12-08 05:14:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!