diff options
author | David Schulz <david.schulz@qt.io> | 2022-12-13 11:57:05 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-12-14 06:20:05 +0000 |
commit | e0b1f694e35d24ff4cc2741f1df0e7158790b3c3 (patch) | |
tree | a59035affca1681b5d9f8c595ac0945540b2234b | |
parent | 75177f4c342220e0c0dbb3f73a261d8e1fac12a6 (diff) |
Editor: Fix deleting with numblock delete in multi text cursor
Fixes: QTCREATORBUG-28584
Change-Id: Ib65a933b61536d9a6342e82c51779c2a91983ec8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/texteditor/texteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 303c588466..285a13a588 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -2695,7 +2695,8 @@ void TextEditorWidget::keyPressEvent(QKeyEvent *e) } break; case Qt::Key_Delete: - if (hasMultipleCursors && !ro && e->modifiers() == Qt::NoModifier) { + if (hasMultipleCursors && !ro + && (e->modifiers() == Qt::NoModifier || e->modifiers() == Qt::KeypadModifier)) { if (cursor.hasSelection()) { cursor.removeSelectedText(); } else { |