mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Don't use our custom up/down arrow actions if shift is pressed
This commit is contained in:
parent
7bc63ba38f
commit
022c31e315
1 changed files with 6 additions and 0 deletions
|
@ -159,6 +159,9 @@ void SplitInput::installKeyPressedEvent()
|
||||||
}
|
}
|
||||||
this->prevIndex = this->prevMsg.size();
|
this->prevIndex = this->prevMsg.size();
|
||||||
} else if (event->key() == Qt::Key_Up) {
|
} else if (event->key() == Qt::Key_Up) {
|
||||||
|
if ((event->modifiers() & Qt::ShiftModifier) != 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (event->modifiers() == Qt::AltModifier) {
|
if (event->modifiers() == Qt::AltModifier) {
|
||||||
SplitContainer *page =
|
SplitContainer *page =
|
||||||
static_cast<SplitContainer *>(this->chatWidget->parentWidget());
|
static_cast<SplitContainer *>(this->chatWidget->parentWidget());
|
||||||
|
@ -184,6 +187,9 @@ void SplitInput::installKeyPressedEvent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (event->key() == Qt::Key_Down) {
|
} else if (event->key() == Qt::Key_Down) {
|
||||||
|
if ((event->modifiers() & Qt::ShiftModifier) != 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (event->modifiers() == Qt::AltModifier) {
|
if (event->modifiers() == Qt::AltModifier) {
|
||||||
SplitContainer *page =
|
SplitContainer *page =
|
||||||
static_cast<SplitContainer *>(this->chatWidget->parentWidget());
|
static_cast<SplitContainer *>(this->chatWidget->parentWidget());
|
||||||
|
|
Loading…
Reference in a new issue