Commit 75f02fb0 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/devicenotifier: forward keys to `ListView`

So pressing arrow keys can navigate in the applet.
parent 9a77503f
Pipeline #215948 passed with stage
in 11 minutes and 3 seconds
......@@ -29,6 +29,8 @@ PlasmaExtras.Representation {
collapseMarginsHint: true
Keys.forwardTo: [notifierDialog]
header: PlasmaExtras.PlasmoidHeading {
visible: !(Plasmoid.containmentDisplayHints & PlasmaCore.Types.ContainmentDrawsPlasmoidHeading) && devicenotifier.mountedRemovables > 1
PlasmaComponents3.ToolButton {
......@@ -166,6 +168,11 @@ PlasmaExtras.Representation {
}
}
Keys.onDownPressed: {
notifierDialog.incrementCurrentIndex();
notifierDialog.currentItem.forceActiveFocus();
}
Loader {
anchors.centerIn: parent
width: parent.width - (PlasmaCore.Units.largeSpacing * 4)
......
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