Commit 306c0d6f authored by Noah Davis's avatar Noah Davis 🌵
Browse files

systemtray HiddenItemsView: allow tab focus and set currentIndex

If activeFocus is true and currentIndex is not set, set currentIndex to
0.
If activeFocus is false and currentIndex is set, unset currentIndex.
parent a875c6d9
......@@ -54,5 +54,12 @@ PlasmaComponents3.ScrollView {
}
}
delegate: ItemLoader {}
activeFocusOnTab: true
onActiveFocusChanged: if (activeFocus && currentIndex === -1) {
currentIndex = 0
} else if (!activeFocus && currentIndex >= 0) {
currentIndex = -1
}
}
}
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