Scroll in selected split with PageUp and PageDown (#2081)

This commit is contained in:
pajlada
2020-10-18 13:15:47 +02:00
committed by GitHub
parent 39a0e69a3b
commit 812cbdf4f9
3 changed files with 19 additions and 0 deletions
+14
View File
@@ -450,6 +450,20 @@ void SplitInput::installKeyPressedEvent()
{
this->openEmotePopup();
}
else if (event->key() == Qt::Key_PageUp)
{
auto &scrollbar = this->split_->getChannelView().getScrollBar();
scrollbar.offset(-scrollbar.getLargeChange());
event->accept();
}
else if (event->key() == Qt::Key_PageDown)
{
auto &scrollbar = this->split_->getChannelView().getScrollBar();
scrollbar.offset(scrollbar.getLargeChange());
event->accept();
}
});
}