diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 79bbfd52517c84e5e2f32a6a1c73baf674d21bd6..0a3bad33cb1a334c66e7a14bdca83b4d8f45d13a 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -1159,6 +1159,7 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e) break; pos = cpos; } + setTextCursor(textCursor()); // make cursor visible return; } else switch (e->key()) { @@ -1202,6 +1203,7 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e) | Qt::MetaModifier)) == Qt::NoModifier && !textCursor().hasSelection()) { handleBackspaceKey(); + setTextCursor(textCursor()); // make cursor visible e->accept(); return; }