Bug 481393

Summary: Can't open the clipboard widget using Enter key
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: materka
Priority: NOR Keywords: accessibility, qt6, regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Fushan Wen 2024-02-16 03:40:41 UTC
SUMMARY
With https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3868 , it's not possible to open the clipboard widget using keyboard because the focus is always restored to the previous window.


STEPS TO REPRODUCE
1. Meta+Alt+P
2. Tab to the clipboard icon
3. Enter

OBSERVED RESULT
The clipboard widget opens and then closes itself

EXPECTED RESULT
The clipboard widget opens

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Fushan Wen 2024-02-16 04:41:22 UTC
Git commit 79b1738c1e94f95ce8d7501e23e69d63443aa212 by Fushan Wen.
Committed on 16/02/2024 at 04:41.
Pushed by fusionfuture into branch 'master'.

DefaultCompactRepresentation: accept key pressed event

Without it the event can be propagated to the system tray.
FIXED-IN: 6.0

M  +1    -0    desktoppackage/contents/applet/DefaultCompactRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/79b1738c1e94f95ce8d7501e23e69d63443aa212
Comment 2 Fushan Wen 2024-02-16 04:41:37 UTC
Git commit 04d3c14b49e6eefe69feffdddb8f8694e2227878 by Fushan Wen.
Committed on 16/02/2024 at 04:41.
Pushed by fusionfuture into branch 'Plasma/6.0'.

DefaultCompactRepresentation: accept key pressed event

Without it the event can be propagated to the system tray.
FIXED-IN: 6.0


(cherry picked from commit 79b1738c1e94f95ce8d7501e23e69d63443aa212)

M  +1    -0    desktoppackage/contents/applet/DefaultCompactRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/04d3c14b49e6eefe69feffdddb8f8694e2227878
Comment 3 Bug Janitor Service 2024-08-13 17:17:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2436