Bug 483253 - After focus is automatically moved to search results list, deleting a character in the search field requires pressing the backspace key twice
Summary: After focus is automatically moved to search results list, deleting a charac...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) (show other bugs)
Version: 6.0.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: accessibility, regression, usability
Depends on:
Blocks:
 
Reported: 2024-03-11 15:49 UTC by Martin Bednar
Modified: 2024-05-23 17:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screencast of the bug including visible keystrokes (1.95 MB, video/webm)
2024-03-25 20:35 UTC, funny0facer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bednar 2024-03-11 15:49:40 UTC
SUMMARY
When searching in kicker, the result list gets populated very fast and the first item is selected. This makes the search bar lose focus (it has no blinking cursor) after the first letter in input. 
All character presses get forwarded and input to the search bar, but pressing backspace sets focus to the search bar, and only after a second press deletes the letter.


STEPS TO REPRODUCE
1. search for something with results
2. delete a few letters of the search by pressing backspace slowly (ie one character at a time)
3.

Observed:
Deleting a letter takes two backspace presses, as focus shifts to results after results list gets refreshed.
Focus shifting is seen by the cursor disappearing.


EXPECTED RESULT:
Focus remains in search bar while editing.

KDE Plasma Version:  6.0.1 with patch from https://bugs.kde.org/show_bug.cgi?id=482736 applied
KDE Frameworks Version: 6.0.0
Qt Version:  6.6.2

Opinion:
It would be nice if the focus logic were inverted: primarily on the search bar (ie the search bar's cursor is always there, blinking) and only navigation arrows and enter were forwarded to the search result lists.
Comment 1 Nate Graham 2024-03-11 19:22:41 UTC
Can reproduce.
Comment 2 funny0facer 2024-03-25 20:35:39 UTC
Created attachment 167758 [details]
Screencast of the bug including visible keystrokes

I added a screencast and can confirm the behavior also on 6.0.2 

KRunner works fine
Application Launcher works fine
Application Menu does not behave as the other 2


Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 3 Nate Graham 2024-04-01 16:26:01 UTC
After investigating a bit, I think the focus change is intentional so that you can navigate the search results list, but requiring two backspace keystrokes is not; this part is clearly a bug.