From 46700d6af4dc68dc3409299c241c3356bb70a69b Mon Sep 17 00:00:00 2001 From: Samuel Nevala <samuel.nevala@digia.com> Date: Wed, 22 Oct 2014 15:08:46 +0300 Subject: [PATCH] Android: Keyboard doesn't hide from done button TextInput does hide and commit remove it from TextField. Task-number: QTBUG-37850 Change-Id: I6a77f856ece4856e7f745ab4a75b214997abf7d8 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com> --- src/controls/TextField.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index 666d13700..3d31162c4 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -652,12 +652,7 @@ Control { Keys.forwardTo: textfield - onAccepted: { - Qt.inputMethod.commit() - if (!(textInput.inputMethodHints & Qt.ImhMultiLine)) - Qt.inputMethod.hide() - textfield.accepted() - } + onAccepted: textfield.accepted() onEditingFinished: textfield.editingFinished() } -- GitLab