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:
parent
351e769eb7
commit
ebdc675cbc
|
@ -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…
Reference in New Issue
Block a user