Verified Commit 8810ebe5 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: add more `KeyNavigation` properties

Add support for pressing up keys to focus on the pin button when the
tabbar has focus.
parent c98e4234
Pipeline #228089 passed with stage
in 53 seconds
......@@ -433,6 +433,8 @@ Item {
}
Plasmoid.fullRepresentation: PlasmaExtras.Representation {
id: fullRep
Layout.preferredHeight: main.Layout.preferredHeight
Layout.preferredWidth: main.Layout.preferredWidth
collapseMarginsHint: true
......@@ -476,7 +478,7 @@ Item {
}
}
Keys.onDownPressed: contentView.currentItem.contentItem.upperListView.itemAtIndex(0).forceActiveFocus();
KeyNavigation.down: contentView.currentItem.contentItem.upperListView.itemAtIndex(0)
onCurrentIndexChanged: {
switch (currentIndex) {
......@@ -492,11 +494,15 @@ Item {
PC3.TabButton {
id: devicesTab
text: i18n("Devices")
KeyNavigation.up: fullRep.KeyNavigation.up
}
PC3.TabButton {
id: streamsTab
text: i18n("Applications")
KeyNavigation.up: fullRep.KeyNavigation.up
}
}
......
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