QML UI: drop focus when selecting a location

Make sure to drop focus both for typing and when selecting
an entry from the list.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2018-03-09 17:27:13 +01:00 committed by Dirk Hohndel
parent 94e0ec8dc9
commit ab99703b02

View file

@ -142,7 +142,11 @@ Item {
Layout.fillWidth: true
onAccepted: {
focus = false
gpsText = manager.getGpsFromSiteName(text)
gpsText = manager.getGpsFromSiteName(editText)
}
onActivated: {
focus = false
gpsText = manager.getGpsFromSiteName(editText)
}
}