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
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.
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.
Can reproduce. We should probably keep it focused when the user navigates to another entry, yeah.
*** Bug 454190 has been marked as a duplicate of this bug. ***