diff options
author | Andy Shaw <andy.shaw@qt.io> | 2021-02-04 08:54:50 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-04 11:19:27 +0000 |
commit | ba01d787b6de3779e4d2e622eba407ab8081280c (patch) | |
tree | 7ae30568c6051b2aff8deccc28cea888b4f0107d /src/quick | |
parent | c9b6cfa56d4030d602db7d28116817fa8e8d2a8c (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.
Change-Id: I687718ae9b4fabbf6456597a475507d2ec1a1f45
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit 6da66ff611902d8c4d485568d746f49c69f1330f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/items/qquicktextinput.cpp | 2 |
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 |