From ab99703b02af6ca59a22a24f4b9b7b7295b75fd8 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Fri, 9 Mar 2018 17:27:13 +0100 Subject: [PATCH] QML UI: drop focus when selecting a location Make sure to drop focus both for typing and when selecting an entry from the list. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DiveDetailsEdit.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 6ad50a682..25c33b939 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -142,7 +142,11 @@ Item { Layout.fillWidth: true onAccepted: { focus = false - gpsText = manager.getGpsFromSiteName(text) + gpsText = manager.getGpsFromSiteName(editText) + } + onActivated: { + focus = false + gpsText = manager.getGpsFromSiteName(editText) } }