Commit 43673d3d authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[kcms/landingpage] Fix keyboard nav and accessibility for most used icons

The Accessible.onPressAction: handler lacked sufficient arguments to
work, and there were no key handlers at all to allow keyboard
activation.

Fixed.
parent 0630eec1
......@@ -36,6 +36,14 @@ MouseArea {
activeFocusOnTab: true
hoverEnabled: true
Accessible.role: Accessible.Button
Accessible.name: label.text
Accessible.description: i18n("Most used module number %1", index+1)
Accessible.onPressAction: { item.clicked(model.kcmPlugin); }
Keys.onReturnPressed: { item.clicked(model.kcmPlugin); }
Keys.onEnterPressed: { item.clicked(model.kcmPlugin); }
Keys.onSpacePressed: { item.clicked(model.kcmPlugin); }
Kirigami.Separator {
anchors{
left: parent.left
......@@ -65,10 +73,5 @@ MouseArea {
wrapMode: Text.Wrap
}
}
Accessible.role: Accessible.Button
Accessible.name: label.text
Accessible.description: i18n("Most used module number %1", index+1)
Accessible.onPressAction: item.clicked();
}
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