1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

This commit is contained in:
DESKTOP-Z50-70\Arman 2018-03-21 12:39:17 +04:00
parent 351e769eb7
commit ebdc675cbc

View File

@ -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;