on xenial help sign in
close search onPressed outside of the header
commitf999de52a07841f8a8e66935e4af75bc9bbbdbcc authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 4 Jul 2014, 13:32 (12 years ago) parent132c2e6
1 file changed+6−2
qml/Components/PageHeader.qml+6−2
qml/Components/PageHeader.qml+6−2
@@ -86,9 +86,13 @@ Item {
8686
8787 InverseMouseArea {
8888 anchors.fill: parent
89− visible: headerContainer.popover !== null
89+ visible: searchTextField.activeFocus
9090 onPressed: {
91− PopupUtils.close(headerContainer.popover);
91+ if (headerContainer.popover) {
92+ PopupUtils.close(headerContainer.popover);
93+ } else {
94+ headerContainer.showSearch = false;
95+ }
9296 }
9397 }
9498