Change editing so that going up or down from a code or quote a para will be added if one doesn't exist so that the block can te typed around

This commit is contained in:
James Graham
2026-01-08 19:23:50 +00:00
parent d0abfe60f9
commit d64e6fc206
4 changed files with 40 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
#include "chatkeyhelper.h"
#include "chatbarcache.h"
#include "chattextitemhelper.h"
#include "clipboard.h"
#include "neochatroom.h"
@@ -58,11 +59,6 @@ bool ChatKeyHelper::up(Qt::KeyboardModifiers modifiers)
return true;
}
if (textItem->isEmpty()) {
room->editLastMessage();
return true;
}
if (textItem->isCompleting) {
Q_EMIT unhandledUp(true);
return true;