Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(chattextedit): ChatTextEdit bug fix for issue #5020 Corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-Z50-70\Arman committed Mar 21, 2018
1 parent 351e769 commit ebdc675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/tool/chattextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebdc675

Please sign in to comment.