QML UI: drop focus on edit

Drop focus on editable comboboxes when pressing enter.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2018-02-11 16:23:04 +01:00 committed by Dirk Hohndel
parent 477d1a3533
commit 6badba2bae

View file

@ -140,6 +140,7 @@ Item {
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true
onAccepted: {
focus = false
gpsText = manager.getGpsFromSiteName(text)
}
}
@ -241,6 +242,9 @@ Item {
onActivated: {
focus = false
}
onAccepted: {
focus = false
}
}
Controls.Label {
@ -258,6 +262,9 @@ Item {
onActivated: {
focus = false
}
onAccepted: {
focus = false
}
}
Controls.Label {
@ -275,6 +282,9 @@ Item {
onActivated: {
focus = false
}
onAccepted: {
focus = false
}
}
Controls.Label {