Bug 444470 - Keep text box focused after navigating search results with up/down arrow keys
Summary: Keep text box focused after navigating search results with up/down arrow keys
Status: CONFIRMED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords: usability
: 454190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-27 05:35 UTC by afedotov861
Modified: 2024-03-06 16:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description afedotov861 2021-10-27 05:35:22 UTC
SUMMARY
When selecting search result with the up/down arrow keys, the text entry box defocuses, leading to inconsistent behavior with regard to entering more text. For example, after pressing up/down to select a result, and then entering more letters, the text box is refocused and the characters are added to the end. However, after pressing up/down and then pressing backspace, the text box is only refocused, and the letter where the cursor was is not deleted. Furthermore, the cursor position is reset to the end of the query after pressing up/down, no matter if the user moved it to the middle of the query before moving up/down. All of this would be avoided if the text box would keep its focus through selecting a search result with the arrow keys.

STEPS TO REPRODUCE
1. type query
2. move text cursor to middle of query
3. press up/down to select a result
4. press backspace once

OBSERVED RESULT
The text box is refocused, the text cursor is reset to the end of the query, and no character is deleted (from neither cursor position)

EXPECTED RESULT
The text box should stay focused when selecting a search result with the arrow keys.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.14.14-arch1-1
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Comment 1 afedotov861 2021-10-27 05:45:03 UTC
I want to clarify, should this bug be confirmed and fixed, that I am not suggesting the text box be forced to be focused all the time, because that would break changing focus between the text box, settings button and keep open button using tab / shift+tab.
Comment 2 afedotov861 2021-10-27 05:53:50 UTC
Sorry, more clarification. When focus is changed to the settings / keep open buttons, keyboard inputs should not refocus the text box, because at this point, such behavior would break the convention of pressing space to activate a focused button.
Comment 3 Nate Graham 2021-10-28 15:49:04 UTC
Can reproduce. We should probably keep it focused when the user navigates to another entry, yeah.
Comment 4 Nate Graham 2024-03-06 16:14:35 UTC
*** Bug 454190 has been marked as a duplicate of this bug. ***