Browse Source

fix(chattextedit): ChatTextEdit bug fix for issue #5020 Corrected

pull/5027/head
DESKTOP-Z50-70\Arman 7 years ago
parent
commit
ebdc675cbc
  1. 2
      src/widget/tool/chattextedit.cpp

2
src/widget/tool/chattextedit.cpp

@ -58,7 +58,7 @@ void ChatTextEdit::keyPressEvent(QKeyEvent* event) @@ -58,7 +58,7 @@ void ChatTextEdit::keyPressEvent(QKeyEvent* event)
return;
}
if (key == Qt::Key_Up && this->toPlainText().isEmpty()) {
this->setText(lastMessage);
this->setPlainText(lastMessage);
this->setFocus();
this->moveCursor(QTextCursor::MoveOperation::End, QTextCursor::MoveMode::MoveAnchor);
return;

Loading…
Cancel
Save