From cbad6d2e835390febbada900df1527287f4803ae Mon Sep 17 00:00:00 2001 From: Shin'ichiro Nakaoka Date: Mon, 25 Mar 2024 10:28:34 +0900 Subject: [PATCH] Fix the configurations of TextEdit in MessageView --- src/Base/MessageView.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Base/MessageView.cpp b/src/Base/MessageView.cpp index d3b31997a..6d75dc08f 100644 --- a/src/Base/MessageView.cpp +++ b/src/Base/MessageView.cpp @@ -191,14 +191,6 @@ int MessageViewStreamBuf::sync() void TextEditEx::keyPressEvent(QKeyEvent* event) { - if((event->modifiers().testFlag(Qt::ControlModifier))){ - switch(event->key()){ - case Qt::Key_C: - case Qt::Key_A: - TextEdit::keyPressEvent(event); - break; - } - } switch(event->key()){ case Qt::Key_Return: moveCursor(QTextCursor::End); @@ -327,7 +319,7 @@ void MessageView::Impl::createTextEdit() textEdit->setObjectName("TextEdit"); textEdit->setFrameShape(QFrame::NoFrame); - //textEdit->setReadOnly(true); + textEdit->setReadOnly(true); textEdit->setTextInteractionFlags( Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); textEdit->setWordWrapMode(QTextOption::WrapAnywhere);