Commit c660d4c9 authored by Yari Polla's avatar Yari Polla Committed by Devin Lin
Browse files

homescreens: also close the search widget with Meta key

parent 47b006ca
......@@ -58,6 +58,7 @@ Item {
readonly property real closedContentY: PlasmaCore.Units.gridUnit * 5
readonly property real openedContentY: 0
readonly property real openFactor: Math.max(0, Math.min(1, 1 - flickable.contentY / closedContentY))
readonly property bool isOpen: openFactor != 0
Rectangle {
anchors.fill: parent
......
......@@ -46,6 +46,11 @@ MobileShell.HomeScreen {
MobileShell.TopPanelControls.closeActionDrawer();
}
// Always close the search widget as well
if (searchWidget.isOpen) {
searchWidget.close();
}
// there's a couple of steps:
// - minimize windows (only if we are in an app)
// - open app drawer
......
......@@ -45,6 +45,11 @@ MobileShell.HomeScreen {
MobileShell.TopPanelControls.closeActionDrawer();
}
// Always close the search widget as well
if (search.isOpen) {
search.close();
}
// there's a couple of steps:
// - minimize windows (only if we are in an app)
// - open app drawer
......
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