Skip to content

discover/qml: improve UpdatesPage accessibility

Christoph Wolk requested to merge cwo/discover:updates_list_a11y into master

Discover's Updates page is currently rather awkward to use with the keyboard: the only thing that gets focus are the checkmarks, but they do not have any focus indicator when they do not have their own label, so it is not clear where focus is. For screen reader users it is a bit more obvious that a checkbox is focused, but no text is announced so it's unclear what the checkbox is for.

This change makes the list work similar to other lists: the whole delegate indicates focus, and the user can press space directly on the delegate to toggle the checkbox state (as in e.g. kdeconnect's plugins list). Screen readers announce the text and subtitle, as well as the number of list entries when entering the list. The checkboxes no longer individually take focus to simplify interaction. Return now extends the delegate to show the extra information (as an alternative to holding Alt, which still works).


This has no string changes so should be suitable for cherrypicking. There's some more screen reader improvements that could be made, but those are probably 6.5 material.

I can't easily test how it behaves with more than one item in the list.

Edited by Christoph Wolk

Merge request reports

Loading