summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/DiveDetails.qml2
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml7
2 files changed, 8 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index 859387ae0..86b069444 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -382,7 +382,7 @@ Kirigami.Page {
cylinderIndex4 = modelData.cylinderList.indexOf(usedCyl[4])
rating = modelData.rating
visibility = modelData.viz
-
+ detailsEdit.focusReset()
diveDetailsPage.state = "edit"
}
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index d605d2919..2fddff291 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -48,6 +48,13 @@ Item {
property int visibility
property var usedCyl: []
+ function focusReset() {
+ // set the focus explicitlt (to steal from any other field), then unset
+ editArea.focus = true
+ editArea.focus = false
+ Qt.inputMethod.hide()
+ }
+
function clearDetailsEdit() {
detailsEdit.dive_id = 0
detailsEdit.number = 0