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

Merge pull request #5027

Only merged one commit, because of an unnecessary merge of master
This commit is contained in:
sudden6 2018-03-24 18:11:52 +01:00
commit 0be49c648c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

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;