mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:23:25 +00:00
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
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue