mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Stop "up arrow" keyboard event from propagating furthern when we're going through message history
Fixes #1102
This commit is contained in:
parent
b7372c911b
commit
406c0b9af8
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue