Editor: Fix deleting with numblock delete in multi text cursor

Fixes: QTCREATORBUG-28584
Change-Id: Ib65a933b61536d9a6342e82c51779c2a91983ec8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-12-13 11:57:05 +01:00
parent 75177f4c34
commit e0b1f694e3

View File

@@ -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 {