Commit 89928976 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/userswitcher: add proper a11y name and description

parent 1dd60925
Pipeline #212806 passed with stage
in 2 minutes and 46 seconds
......@@ -21,6 +21,8 @@ PlasmaComponents3.ItemDelegate {
highlighted: activeFocus
Accessible.name: `${text}${subText ? `: ${subText}` : ""}`
onHoveredChanged: if (hovered) {
if (ListView.view) {
ListView.view.currentIndex = index;
......
......@@ -197,6 +197,8 @@ Item {
KeyNavigation.up: index === 0 ? currentUserItem.nextItemInFocusChain() : userList.itemAtIndex(index - 1)
KeyNavigation.down: index === userList.count - 1 ? newSessionButton : userList.itemAtIndex(index + 1)
Accessible.description: i18nc("@action:button", "Switch to User %1", text)
onClicked: sessionsModel.switchUser(model.vtNumber, sessionsModel.shouldLock)
}
}
......
Supports Markdown
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