Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit bf9e6a40 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Add accessibility and set focus on the actual items in the window switcher

For accessibility reasons we want to make sure that the QQuickWindow
thinks the focus is on the correct item. This will allow screen readers
to read which window is current in the window switcher.

Test Plan:
Running with accessibility inspection tools I see that the
right item has the focus with this change.

Reviewers: davidedmundson, chempfling, kwin

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Maniphest Tasks: T7034

Differential Revision:
parent c3f77666
......@@ -87,6 +87,10 @@ KWin.Switcher {
width: parent.width - 2 * units.smallSpacing
spacing: units.smallSpacing
focus: index == thumbnailListView.currentIndex model.caption
Accessible.role: Accessible.Client
Item {
Layout.fillWidth: true
Layout.preferredHeight: Math.round(width / tabBox.screenFactor)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment