Commit 26045ba5 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Global Menu Applet] Open menu on press

Adds a MouseArea so it opens on press like QMenu does.
It just forward to clicked since this is called from various places (keyboard nav, Alt activation, etc)

Differential Revision: https://phabricator.kde.org/D13108
parent 92952ba3
......@@ -136,6 +136,12 @@ Item {
return plasmoid.nativeInterface.currentIndex === index;
});
}
// QMenu opens on press, so we'll replicate that here
MouseArea {
anchors.fill: parent
onPressed: parent.clicked()
}
}
}
}
......
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