aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-05 10:49:43 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-05 10:49:43 -0800
commit7f70802b9025421d25ba63a9fe9932474ac1748c (patch)
tree116bf338494e7a4d50540e9034fa923969f2c4db /qt-mobile/qml/DiveDetails.qml
parent48695cda7c48362b7f020a5d0f7dd34bfa206ad9 (diff)
downloadsubsurface-7f70802b9025421d25ba63a9fe9932474ac1748c.tar.gz
QML UI: explicitly hide the keyboard when exiting dive edit
If you save or cancel the dive edit, the keyboard should be closed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index bf07d4571..aab113eef 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -49,10 +49,12 @@ MobileComponents.Page {
if (state === "edit") {
// just cancel the edit state
state = "view"
+ Qt.inputMethod.hide()
} else if (state === "add") {
// edit was canceled - so remove the dive from the dive list
manager.addDiveAborted(dive_id)
state = "view"
+ Qt.inputMethod.hide()
} else {
// set things up for editing - so make sure that the detailsEdit has
// all the right data (using the property aliases set up above)