on xenial help sign in
unfocus the drawer's textfield when it starts moving
commitbac0763e1e16362b27510bb779d53330ebfcbde5 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 9 Mar 2017, 16:04 (10 years ago) parent16aeee9
2 files changed+4
qml/Launcher/Drawer.qml+1 qml/Launcher/Launcher.qml+3
qml/Launcher/Drawer.qml+1
@@ -27,6 +27,7 @@ FocusScope {
2727
2828 property int panelWidth: 0
2929 readonly property bool moving: listLoader.item && listLoader.item.moving
30+ readonly property Item searchTextField: searchField
3031
3132 signal applicationSelected(string appId)
3233
qml/Launcher/Launcher.qml+3
@@ -359,6 +359,9 @@ FocusScope {
359359 topMargin: root.inverted ? root.topPanelHeight : 0
360360 bottom: parent.bottom
361361 right: parent.left
362+ onRightMarginChanged: {
363+ drawer.searchTextField.focus = false;
364+ }
362365 }
363366 width: Math.min(root.width, units.gu(90)) * .9
364367 panelWidth: panel.width