on xenial help sign in
change unfocusing/closing popup behavior a little
aa1fee4Michael Zanetti
qml/Components/PageHeader.qml+5−2
@@ -86,13 +86,16 @@ Item {
86
86
87 InverseMouseArea {
87 InverseMouseArea {
88 anchors { fill: parent; margins: units.gu(1); bottomMargin: units.gu(3) + bottomContainer.height }
88 anchors { fill: parent; margins: units.gu(1); bottomMargin: units.gu(3) + bottomContainer.height }
89− visible: searchTextField.activeFocus
89+ visible: headerContainer.showSearch
90 onPressed: {
90 onPressed: {
91 if (headerContainer.popover) {
91 if (headerContainer.popover) {
92 PopupUtils.close(headerContainer.popover);
92 PopupUtils.close(headerContainer.popover);
93+ }
93− } else if (!searchTextField.text) {
94+ if (!searchTextField.text) {
94 headerContainer.showSearch = false;
95 headerContainer.showSearch = false;
95 }
96 }
97+ searchTextField.focus = false;
98+ mouse.accepted = false;
96 }
99 }
97 }
100 }
98
101