From 289c6c4f20a8fdd1d4ef2bee49f891d7f6bf569d Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 25 Jan 2026 19:03:34 +0000 Subject: [PATCH] Fix delete when selecting text --- src/libneochat/chatkeyhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {