Bug 437959 - Search field loses focus after search is finished
Summary: Search field loses focus after search is finished
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Weather (show other bugs)
Version: 5.21.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-06-01 15:26 UTC by medin
Modified: 2021-07-26 14:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments
Search field loses focus after search is finished (1.29 MB, video/mp4)
2021-06-01 15:26 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-06-01 15:26:16 UTC
Created attachment 138923 [details]
Search field loses focus after search is finished

When you type a location in search field and the search is finished (load icon disappears) then the search field loses focus and when you try to add characters it loses each time focus with each typed character. See attached video for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.4.118-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Comment 1 Nate Graham 2021-06-08 21:30:01 UTC
This is intentional so that you can select an item from the search field using the keyboard, but I guess we can make it easier for the search field to regain focus, either when you type or when you hit the up arrow at the top list item--or both.
Comment 2 medin 2021-06-08 21:38:38 UTC
(In reply to Nate Graham from comment #1)
> This is intentional so that you can select an item from the search field
> using the keyboard, but I guess we can make it easier for the search field
> to regain focus, either when you type or when you hit the up arrow at the
> top list item--or both.

It would be best if the focus remains in search field even if search is finished and then user can press tab key two times to jump to result list, because for someone who type slowly it's frustrating to re-click in search field after every character is typed, because for now you have to finish typing the whole correct word before the search is finished to avoid lose of focus.
Comment 3 Patrick Silva 2021-07-03 11:45:28 UTC
Yesterday I noticed this bug on Arch Linux running Plasma 5.22.2.
Comment 4 Nate Graham 2021-07-22 18:12:49 UTC
This is being worked on at https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/76
Comment 5 Nate Graham 2021-07-26 14:20:31 UTC
Git commit c81dc306276b427890561a634416d800315d2c7e by Nate Graham, on behalf of Bharadwaj Raju.
Committed on 26/07/2021 at 14:20.
Pushed by ngraham into branch 'master'.

[applets/weather] Don't switch focus away from search field to result list

Switching focus away from search field to result list while the user is typing
results in a very annoying search experience.

This change doesn't slow down the user, since the first result is still selected
but not focused. So when user can still directly click "Select" without having
the select the first item.

To make this even nicer, the up and down arrow keys can now be used to navigate
the results list while the search field is still focused.
FIXED-IN: 5.23

M  +24   -13   applets/weather/package/contents/ui/config/WeatherStationPicker.qml
M  +1    -1    applets/weather/package/contents/ui/config/WeatherStationPickerDialog.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/c81dc306276b427890561a634416d800315d2c7e