on xenial help sign in
unfocus the drawer's textfield when it starts moving
bac0763Michael Zanetti
qml/Launcher/Drawer.qml+1
@@ -27,6 +27,7 @@ FocusScope {
27
27
28 property int panelWidth: 0
28 property int panelWidth: 0
29 readonly property bool moving: listLoader.item && listLoader.item.moving
29 readonly property bool moving: listLoader.item && listLoader.item.moving
30+ readonly property Item searchTextField: searchField
30
31
31 signal applicationSelected(string appId)
32 signal applicationSelected(string appId)
32
33
qml/Launcher/Launcher.qml+3
@@ -359,6 +359,9 @@ FocusScope {
359 topMargin: root.inverted ? root.topPanelHeight : 0
359 topMargin: root.inverted ? root.topPanelHeight : 0
360 bottom: parent.bottom
360 bottom: parent.bottom
361 right: parent.left
361 right: parent.left
362+ onRightMarginChanged: {
363+ drawer.searchTextField.focus = false;
364+ }
362 }
365 }
363 width: Math.min(root.width, units.gu(90)) * .9
366 width: Math.min(root.width, units.gu(90)) * .9
364 panelWidth: panel.width
367 panelWidth: panel.width