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

applet: allow to press left/right keys to switch focus when graph is visible

Requires `expanded` property in the framework.

Test: press Left/Right keys when the first item is the current item.
parent ac471643
Pipeline #218259 passed with stage
in 3 minutes and 2 seconds
......@@ -56,6 +56,11 @@ PlasmaExtras.ExpandableListItem {
showDefaultActionButtonWhenBusy: true
Keys.onPressed: {
if (!connectionItem.expanded) {
event.accepted = false;
return;
}
if ((customExpandedViewContent == detailsComponent) && showSpeed) {
if (event.key == Qt.Key_Right) {
customExpandedViewContentItem.detailsTabBar.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