diff options
author | Bartlomiej Moskal <bartlomiej.moskal@qt.io> | 2021-01-19 10:41:48 +0100 |
---|---|---|
committer | Bartlomiej Moskal <bartlomiej.moskal@qt.io> | 2021-02-15 08:39:23 +0100 |
commit | 6ec8c62ca22c363fa00e085de10198a90e3d65dc (patch) | |
tree | 76b5142c969460db364cd8408fdd17280a11a9fe /.prev_CMakeLists.txt | |
parent | a267a177bd85c0cd5123894b4edcc4e9cc759cba (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.
Pick-to: 5.15 6.0 6.1
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>
Diffstat (limited to '.prev_CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions