https://bugs.kde.org/show_bug.cgi?id=515863

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/f2e84488ed5050156f94bf948 |t/91264355a6eeb239a7fd759be
                   |541d0258a733b1e             |60a75f18717af5d

--- Comment #5 from Nate Graham <[email protected]> ---
Git commit 91264355a6eeb239a7fd759be60a75f18717af5d by Nate Graham.
Committed on 24/02/2026 at 04:51.
Pushed by ngraham into branch 'Plasma/6.6'.

applets/systemtray: reset currentIndex when searching

The header in the system tray config dialog is in the same FocusScope as
the ListView itself. If there is a currentItem, Qt will try to maintain
the same item as the currentItem, which gives it focus in its FocusScope
so the search field will lose focus after every key press; otherwise it
may set it to the first item, with the same result.

Instead, clear the currentIndex before searching - this way, focus will
stick on the search field until the user presses Down arrow to
intentionally interact with the results. Maintaing the currentItem on
search does not seem necessary; if the user already has selected the
item they want to interact with, they don't need to search for it
anymore, so if they're editing the search it's reasonable to assume they
don't care about whatever happened to be selected last.
FIXED-IN: 6.6.1


(cherry picked from commit f2e84488ed5050156f94bf948541d0258a733b1e)

Co-authored-by: Christoph Wolk <[email protected]>

M  +6    -1    applets/systemtray/qml/ConfigGeneral.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/91264355a6eeb239a7fd759be60a75f18717af5d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to