Bug 477348 - Application Dashboard: Can't select items via keyboard after searching
Summary: Application Dashboard: Can't select items via keyboard after searching
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Application Dashboard (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-21 21:57 UTC by Jan Rathmann
Modified: 2024-04-19 12:17 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.5


Attachments
Workaround that makes launching apps via Enter key work again (1.11 KB, patch)
2024-02-05 12:19 UTC, Jan Rathmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rathmann 2023-11-21 21:57:58 UTC
SUMMARY
In the Plasma 6 version of the Application Dashboard, it's impossible to select or change between items after entering a search term.

STEPS TO REPRODUCE
1. Open Dashboard.
2. Enter some letters as a search term.
3. Try to select an item by pressing Arrow-down or Tab.

OBSERVED RESULT
Keyboard focus stays in the search field. No item gets selected.
When pressing Arrow-down, nothing happens. When pressing Tab, the search term is expanded by a tab character. (Pressing Enter adds a line-break, which also looks funny ;-) )

EXPECTED RESULT
Pressing Arrow-down should navigate you downwards through the items, pressing Tab should navigate you through the first items of each section.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.81
KDE Frameworks Version: 5.245
Qt Version: 6.6.0

ADDITIONAL INFORMATION
* Independent of Wayland/X11.
* Reproduced in Neon Unstable installation and VM with openSuse Krypton live image.
Comment 1 Jan Rathmann 2024-02-05 12:19:34 UTC
Created attachment 165564 [details]
Workaround that makes launching apps via Enter key work again

Was debugging this for some hours during the last weeks, but still it isn't clear to me was exactly causes this bug or what would work to fix it. It seems it might be related to some change between Qt5 and Qt6, or some change to applets behaviour between P5 and P6. I would need a lot more experience in QML and Plasma applet development to make any progress on this, I guess.

Anyway, I found a workaround to make at least launching apps via Enter key work again. I have attached the respecting patch, but I'm really unsure if this is the way it should be implemented (that's why I didn't make a merge request).
Comment 2 andy 2024-03-07 17:37:56 UTC
Thanks for the patch Jan. I can confirm it works on my system (arch linux, plasma 6.0.1). IMO if it works it works and might as well submit it for some progress.

Additional observations (without the patch):
- hovering over an icon in Favorites or Applications, a square border appears around the hovered icon, and pressing Enter opens the item.
- after typing something in search, the first item in the result should have the square border but it does not
- hovering over one of the items in the search result does show a square border, but pressing Enter opens a different item
Comment 3 polardelphine 2024-03-10 18:13:51 UTC
I have the same Issue. I cannot select any items via the keyboard and also when wanting to search for application in application dashboard I have to first manually click into the search field then type. Also when hitting enter after typing a keywoard (which previously opened the respective application) now just does not work anymore at all.
Comment 4 Samuel M. 2024-03-13 17:37:38 UTC
Note that the aspect of what happens if you press enter is or was handled in other issues, this issues remains with a strict focus on selecting an item with arrow down and tab.

I will also be so free and adjust the plasma version. While the original issue was observed in plasma 5, and just concerned the plasma 6 version of the applet, this has been observed multiple times in plasma 6 now.

The solution to the issue of opening an application with enter (https://bugs.kde.org/show_bug.cgi?id=483142) should probably be tested with a fix for this issue, so I'd recommend handling this first.
Comment 5 Samuel M. 2024-03-13 17:38:43 UTC
It seems I need to submit changes to the plasma version with a comment...
Comment 6 alphaLimaTango 2024-03-31 02:03:29 UTC
I'm on plasmashell 6.0.3 and can confirm this bug too
Comment 7 Marco Martin 2024-04-16 08:02:08 UTC
Git commit 9817d455fcfb1897f74dfdbcdf3de50e9fd66d77 by Marco Martin.
Committed on 16/04/2024 at 08:01.
Pushed by mart into branch 'master'.

Fix keyboard navigation

As a fallout from porting to kf6, there were sevaral items that were
renamed and not all users now accessed the proper id

this fixes keyboard navigation in krunner results and "all applications" view
Related: bug 485588

M  +2    -0    applets/kicker/package/contents/ui/DashboardRepresentation.qml
M  +37   -37   applets/kicker/package/contents/ui/ItemMultiGridView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9817d455fcfb1897f74dfdbcdf3de50e9fd66d77
Comment 8 Marco Martin 2024-04-16 12:17:43 UTC
Git commit 86faa13193b51cc789d0f89d55f6a6ae20ccd984 by Marco Martin.
Committed on 16/04/2024 at 12:12.
Pushed by mart into branch 'Plasma/6.0'.

Fix keyboard navigation

As a fallout from porting to kf6, there were sevaral items that were
renamed and not all users now accessed the proper id

this fixes keyboard navigation in krunner results and "all applications" view
Related: bug 485588


(cherry picked from commit 9817d455fcfb1897f74dfdbcdf3de50e9fd66d77)

f290bb9e Fix keyboard navigation

M  +2    -0    applets/kicker/package/contents/ui/DashboardRepresentation.qml
M  +37   -37   applets/kicker/package/contents/ui/ItemMultiGridView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/86faa13193b51cc789d0f89d55f6a6ae20ccd984
Comment 9 Rune 2024-04-19 08:21:29 UTC
This is sadly not fixed. The keyboard navigation does not work after searching, only after just opening the application dashboard.
Comment 10 Jan Rathmann 2024-04-19 10:50:42 UTC
(In reply to Rune from comment #9)
> This is sadly not fixed. The keyboard navigation does not work after
> searching, only after just opening the application dashboard.

Strange, the keyboard navigation does still work for me after typing search text. (I run a kdesrc-build from git master.)
Comment 11 Nate Graham 2024-04-19 12:17:04 UTC
It was my mistake; the commit that fixed this went in right after 6.0.4 was tagged, so it'll be in 6.0.5 instead.