Bug 454653 - Applet is horizontally scrollable via keyboard (Right key)
Summary: Applet is horizontally scrollable via keyboard (Right key)
Status: ASSIGNED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-31 11:26 UTC by ratijas
Modified: 2022-12-23 21:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Battery applet - horizontally scrollable (2.05 MB, video/mp4)
2022-05-31 11:26 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2022-05-31 11:26:50 UTC
Created attachment 149354 [details]
Battery applet - horizontally scrollable

SUMMARY

Pressing Right key on a focused «Battery & Brightness» applet (e.g. immediately after it is opened in system tray before touching anything else) causes it to scroll horizontally, even though the horizontal scroll bar is forced to be hidden.

STEPS TO REPRODUCE
1. Click on a battery applet's icon in system tray, or (if hidden) open the system tray popup and click it there.
2. Press Right

OBSERVED RESULT
Empty applet, because it has scrolled right by an amount of an entire view port width.

GammaRay inspector shows that before scrolling the batteryList's ListView::contentX was -8, and after pressing Right it has become -304.

EXPECTED RESULT
Shouldn't be scrollable horizontally. Something is very wrong with positioning there, if in idle state it is already negative 8 logical pixels.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.18.0-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Comment 1 ratijas 2022-05-31 11:31:39 UTC
Not reproducible on stable. This is a recent regression, probably caused by the porting the whole content into a ScrollView.
Comment 2 Bug Janitor Service 2022-05-31 19:31:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1789
Comment 3 ratijas 2022-05-31 19:32:55 UTC
Clipboard applet is also affected. When you focus on a search field and it is empty, key events are forwarded to the list view instead.
Comment 4 ratijas 2022-12-18 16:47:01 UTC
Clipboard applet is still affected. Battery & Brightness has been auto-fixed by refactoring all its content into ItemDelegates which "eat" key press events and won't let the scrollview scroll away, I guess.