Bug 504630

Summary: Greyed-out search results can be interacted with using arrow keys and Enter key
Product: [Applications] systemsettings Reporter: Tamás Králl <tamaskrall42>
Component: sidebarviewAssignee: Akseli Lahtinen <akselmo>
Status: RESOLVED FIXED    
Severity: normal CC: akselmo, kdedev, nate, notmart
Priority: NOR    
Version First Reported In: 6.3.90   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:
Attachments: The greyed-out search results can be interacted with.

Description Tamás Králl 2025-05-21 18:08:26 UTC
Created attachment 181623 [details]
The greyed-out search results can be interacted with.

SUMMARY
When searching for examle for "default", the parent categories of the search results are greyed out. However, using the arrow keys, these can still be selected, and by pressing the Enter key, they can be opened. When opened, sometimes they produce empty pages. See the attached video for detail.

STEPS TO REPRODUCE
1. Search for "default"
2. Press the down arrow key until the greyed-out "Default Applications" is highlighted
3. Press the Enter key

OBSERVED RESULT
Empty page appears on the right.

EXPECTED RESULT
The greyed-out element can't be highlighted/opened.

SOFTWARE/OS VERSIONS
System Settings: 6.3.90
KDE Frameworks: 6.15.0
Qt: Using 6.9.0 and built against 6.9.0
KDE neon Unstable Edition (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.11.0-26-generic
Comment 1 TraceyC 2025-05-21 23:33:17 UTC
I confirm this behavior on git-master. It *may* be intentional to be able to interact with the greyed out items, for accessibility reasons (like so a screen reader can read it for context). I'll let someone more familiar with the code make that determination.
Comment 2 Nate Graham 2025-05-22 14:55:49 UTC
If the base behavior is intentional, there's a bug because you can press Enter while it's highlighted and cause the main view to go blank! That part is definitely not intentional.

I would vote for skipping these items with keyboard navigation.
Comment 3 Akseli Lahtinen 2025-06-03 11:58:16 UTC
I asked our accessibility engineer Ritchie about what to do, skip or not, but let's fix the opening them at least. :)
Comment 4 Bug Janitor Service 2025-06-03 12:32:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/systemsettings/-/merge_requests/364
Comment 5 Akseli Lahtinen 2025-06-03 14:01:51 UTC
Git commit e8ce0f840343490c9ea33a0cb2191d845537dd1d by Akseli Lahtinen.
Committed on 03/06/2025 at 12:38.
Pushed by akselmo into branch 'master'.

CategoriesPage: Don't open disabled items on key navigation

If user navigates with keys and presses enter on the disabled items,
they would still open.

Check that the item is enabled in the onClicked signal before doing
anything, so that we do not open these items by accident.
FIXED-IN: 6.4

M  +1    -1    app/qml/CategoriesPage.qml

https://invent.kde.org/plasma/systemsettings/-/commit/e8ce0f840343490c9ea33a0cb2191d845537dd1d
Comment 6 Akseli Lahtinen 2025-06-03 15:09:05 UTC
Git commit a8d557259e1e6ee5fb608b74e14810c63ea6e4d9 by Akseli Lahtinen.
Committed on 03/06/2025 at 14:02.
Pushed by akselmo into branch 'Plasma/6.4'.

CategoriesPage: Don't open disabled items on key navigation

If user navigates with keys and presses enter on the disabled items,
they would still open.

Check that the item is enabled in the onClicked signal before doing
anything, so that we do not open these items by accident.
FIXED-IN: 6.4


(cherry picked from commit e8ce0f840343490c9ea33a0cb2191d845537dd1d)

e8ce0f84 CategoriesPage: Don't open disabled items on key navigation

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +1    -1    app/qml/CategoriesPage.qml

https://invent.kde.org/plasma/systemsettings/-/commit/a8d557259e1e6ee5fb608b74e14810c63ea6e4d9