From 022c31e31519e7b07ab999e0d7d9b213b1f78f24 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 13 May 2018 18:27:17 +0200 Subject: [PATCH] Don't use our custom up/down arrow actions if shift is pressed --- src/widgets/helper/splitinput.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/helper/splitinput.cpp b/src/widgets/helper/splitinput.cpp index a549a38f5..7d595acdd 100644 --- a/src/widgets/helper/splitinput.cpp +++ b/src/widgets/helper/splitinput.cpp @@ -159,6 +159,9 @@ void SplitInput::installKeyPressedEvent() } this->prevIndex = this->prevMsg.size(); } else if (event->key() == Qt::Key_Up) { + if ((event->modifiers() & Qt::ShiftModifier) != 0) { + return; + } if (event->modifiers() == Qt::AltModifier) { SplitContainer *page = static_cast(this->chatWidget->parentWidget()); @@ -184,6 +187,9 @@ void SplitInput::installKeyPressedEvent() } } } else if (event->key() == Qt::Key_Down) { + if ((event->modifiers() & Qt::ShiftModifier) != 0) { + return; + } if (event->modifiers() == Qt::AltModifier) { SplitContainer *page = static_cast(this->chatWidget->parentWidget());