diff --git a/src/libneochat/chatkeyhelper.cpp b/src/libneochat/chatkeyhelper.cpp index 0c3ea1df7..14bf0339b 100644 --- a/src/libneochat/chatkeyhelper.cpp +++ b/src/libneochat/chatkeyhelper.cpp @@ -128,7 +128,7 @@ bool ChatKeyHelper::deleteChar() } QTextCursor cursor = textItem->textCursor(); - if (cursor.isNull()) { + if (cursor.isNull() || cursor.hasSelection()) { return false; } if (cursor.position() >= textItem->document()->characterCount() - textItem->fixedEndChars().length() - 1) {