Bug 431894 - First search result is only selected sometimes
Summary: First search result is only selected sometimes
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: 5.20.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-21 20:46 UTC by Sebastian
Modified: 2021-01-23 10:55 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2021-01-21 20:46:23 UTC
SUMMARY
When opening the Application Launcher and starting to type usually the first search result is selected. However sometimes (apparently at random) no search result is selected and you have to use the cursor keys/mouse to select a result. Shorter search strings with many results usually select no result while specific searches with only one result usually select this one result, but not always.

STEPS TO REPRODUCE
1. Open Application Launcher
2. Start typing, e.g., "d". This will usually show a bunch of results, but no result is selected.
3. Continue typing "do", which will find Dolphin and select it.
4. Remove the last character again (back to "d"), will show many results again but this time "Dolphin" is selected again.

OBSERVED RESULT
Selection in search results appears randomly.

EXPECTED RESULT
Consistent behavior with all searches. Preferably the first result show be already selected so it can be launched directly.

SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-01-22 14:48:35 UTC
Fixed in the Plasma 5.21 rewrite.

*** This bug has been marked as a duplicate of bug 423160 ***
Comment 2 Mikel Johnson 2021-01-22 20:11:45 UTC
Actually the issue is a bit different, so it's worth keeping this one open (will fix)

btw the intended behavior is for search field to always be selected (this is an accessibility thing and is consistent with the behavior of other views)
Comment 3 Mikel Johnson 2021-01-23 08:57:27 UTC
for reference current repro:

1. Type a character
2. Select an item
3. Erase the character
4. Type anything again
5. First item gets selected even though it shouldn't
Comment 4 Mikel Johnson 2021-01-23 08:57:46 UTC
Git commit 62503e215e526851aa9f2dbc585cc503c3c7b08a by Mikel Johnson.
Committed on 23/01/2021 at 08:57.
Pushed by mikeljohnson into branch 'master'.

[Kickoff] Check for searchPage directly rather than root.state

FIXED-IN: 5.21

M  +1    -1    applets/kickoff/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/commit/62503e215e526851aa9f2dbc585cc503c3c7b08a
Comment 5 Mikel Johnson 2021-01-23 10:55:29 UTC
Git commit 82d2e94e48cc5ef1e4cb855cc6d559a96336e683 by Mikel Johnson.
Committed on 23/01/2021 at 10:55.
Pushed by mikeljohnson into branch 'Plasma/5.21'.

[Kickoff] Check for searchPage directly rather than root.state

FIXED-IN: 5.21


(cherry picked from commit 62503e215e526851aa9f2dbc585cc503c3c7b08a)

M  +1    -1    applets/kickoff/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/commit/82d2e94e48cc5ef1e4cb855cc6d559a96336e683