Skip to content

Commit

Permalink
Fix the configurations of TextEdit in MessageView
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakaoka committed Mar 25, 2024
1 parent b50a559 commit cbad6d2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Base/MessageView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cbad6d2

Please sign in to comment.