diff --git a/src/widgets/krichtextedit.cpp b/src/widgets/krichtextedit.cpp --- a/src/widgets/krichtextedit.cpp +++ b/src/widgets/krichtextedit.cpp @@ -490,6 +490,7 @@ void KRichTextEdit::keyPressEvent(QKeyEvent *event) { bool handled = false; + textCursor().beginEditBlock(); if (textCursor().currentList()) { // handled is False if the key press event was not handled or not completely // handled by the Helper class. @@ -503,6 +504,7 @@ if (textCursor().currentList()) { d->nestedListHelper->handleAfterKeyPressEvent(event); } + textCursor().endEditBlock(); emit cursorPositionChanged(); }