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:
parent
477d1a3533
commit
6badba2bae
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user