From 6badba2bae3f3437502bf444b94c956f3f0f4073 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sun, 11 Feb 2018 16:23:04 +0100 Subject: QML UI: drop focus on edit Drop focus on editable comboboxes when pressing enter. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DiveDetailsEdit.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mobile-widgets') 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 { -- cgit v1.2.3-70-g09d2