aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2021-02-04 08:54:50 +0100
committerAndy Shaw <andy.shaw@qt.io>2021-02-04 11:01:34 +0100
commit6da66ff611902d8c4d485568d746f49c69f1330f (patch)
tree2eefa443fe36e4c8fc794081e9838feaf95af21b
parent2bb4da9a2cfe38eff7670f633c8caceaba394df6 (diff)
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. Pick-to: 6.1 Change-Id: I687718ae9b4fabbf6456597a475507d2ec1a1f45 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--src/quick/items/qquicktextinput.cpp2
1 files changed, 0 insertions, 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