From ba01d787b6de3779e4d2e622eba407ab8081280c Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 4 Feb 2021 08:54:50 +0100 Subject: Don't hide the inputMethod when finishing the edit There is no reason to hide the inputMethod explicitly when finishing the editing. This will be taken care of for us by the platform plugin and will account for a situation where Qt Quick Controls 2 will check if the item had focus when it is in an popup being closed at this point too. Change-Id: I687718ae9b4fabbf6456597a475507d2ec1a1f45 Reviewed-by: Mitch Curtis Reviewed-by: Richard Moe Gustavsen (cherry picked from commit 6da66ff611902d8c4d485568d746f49c69f1330f) Reviewed-by: Qt Cherry-pick Bot --- src/quick/items/qquicktextinput.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index f5a09220f5..d599ff4552 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -4394,8 +4394,6 @@ void QQuickTextInputPrivate::processKeyEvent(QKeyEvent* event) QInputMethod *inputMethod = QGuiApplication::inputMethod(); inputMethod->commit(); - if (!(q->inputMethodHints() & Qt::ImhMultiLine)) - inputMethod->hide(); if (activeFocus) { // If we lost focus after hiding the virtual keyboard, we've already emitted -- cgit v1.2.3