Don't use our custom up/down arrow actions if shift is pressed

This commit is contained in:
Rasmus Karlsson 2018-05-13 18:27:17 +02:00
parent 7bc63ba38f
commit 022c31e315

View file

@ -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<SplitContainer *>(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<SplitContainer *>(this->chatWidget->parentWidget());