From 7f70802b9025421d25ba63a9fe9932474ac1748c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 5 Feb 2016 10:49:43 -0800 Subject: 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 --- qt-mobile/qml/DiveDetails.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-mobile/qml/DiveDetails.qml') 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) -- cgit v1.2.3-70-g09d2