diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2018-03-09 17:27:13 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-03-19 12:01:14 -0700 |
commit | ab99703b02af6ca59a22a24f4b9b7b7295b75fd8 (patch) | |
tree | 9eb591258a9e9b0536b35306807e0f6b20d5d774 /mobile-widgets | |
parent | 94e0ec8dc95222d12bc82c18cd39dfefddc71e73 (diff) | |
download | subsurface-ab99703b02af6ca59a22a24f4b9b7b7295b75fd8.tar.gz |
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 <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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) } } |