aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetailsEdit.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml7
1 files changed, 7 insertions, 0 deletions
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