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.
wilder-5.25
Noah Davis 4 years ago
parent a875c6d972
commit 306c0d6fc4
  1. 7
      applets/systemtray/package/contents/ui/HiddenItemsView.qml

@ -54,5 +54,12 @@ PlasmaComponents3.ScrollView {
}
}
delegate: ItemLoader {}
activeFocusOnTab: true
onActiveFocusChanged: if (activeFocus && currentIndex === -1) {
currentIndex = 0
} else if (!activeFocus && currentIndex >= 0) {
currentIndex = -1
}
}
}

Loading…
Cancel
Save