diff options
author | Bartlomiej Moskal <bartlomiej.moskal@qt.io> | 2021-01-19 10:41:48 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-15 10:42:50 +0000 |
commit | 9f864cc12753a1b9b4d58139df7509b411693e28 (patch) | |
tree | 9578e51d235346c4b04702c473396a67623645a0 /.gitattributes | |
parent | eac905abced62d918fbfcd7b932b3ae415dcf8a5 (diff) |
qquicktextinput: Fix Undo history for IM event
Do not set m_cursor (cursor position) before calling
removeSelectedText() in processInputMethodEvent(QInputMethodEvent *)
method.
Before this change, DeleteSelection command was added to history with
new cursor position. If this command will be later rolled back, cursor
position will not be set correctly. It should be set to position
before handling the event.
Task-number: QTBUG-90239
Change-Id: Ib5e46d232e6b32f904e745da4f9e5bc03a58963f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 6ec8c62ca22c363fa00e085de10198a90e3d65dc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions