aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetailsEdit.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2018-02-11 16:23:04 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-03-19 12:01:14 -0700
commit6badba2bae3f3437502bf444b94c956f3f0f4073 (patch)
treec8c007d9e93affe4b48d92a90b83d4fae788ea70 /mobile-widgets/qml/DiveDetailsEdit.qml
parent477d1a35332506024826fe7e9e8a7242a9f98b29 (diff)
downloadsubsurface-6badba2bae3f3437502bf444b94c956f3f0f4073.tar.gz
QML UI: drop focus on edit
Drop focus on editable comboboxes when pressing enter. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index 2f889c467..4e3b956f0 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -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 {