From 406c0b9af836773c1af602111c1197b7cd60e097 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Fri, 21 Jun 2019 22:15:17 +0200 Subject: [PATCH] Stop "up arrow" keyboard event from propagating furthern when we're going through message history Fixes #1102 --- src/widgets/splits/SplitInput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 0546fb339..c94b91171 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -243,6 +243,10 @@ void SplitInput::installKeyPressedEvent() QTextCursor cursor = this->ui_.textEdit->textCursor(); cursor.movePosition(QTextCursor::End); this->ui_.textEdit->setTextCursor(cursor); + + // Don't let the keyboard event propagate further, we've + // handled it + event->accept(); } } }