Stop "up arrow" keyboard event from propagating furthern when we're going through message history

Fixes #1102
This commit is contained in:
Rasmus Karlsson 2019-06-21 22:15:17 +02:00
parent b7372c911b
commit 406c0b9af8

View file

@ -243,6 +243,10 @@ void SplitInput::installKeyPressedEvent()
QTextCursor cursor = this->ui_.textEdit->textCursor(); QTextCursor cursor = this->ui_.textEdit->textCursor();
cursor.movePosition(QTextCursor::End); cursor.movePosition(QTextCursor::End);
this->ui_.textEdit->setTextCursor(cursor); this->ui_.textEdit->setTextCursor(cursor);
// Don't let the keyboard event propagate further, we've
// handled it
event->accept();
} }
} }
} }