mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Scroll in selected split with PageUp and PageDown (#2081)
This commit is contained in:
parent
39a0e69a3b
commit
812cbdf4f9
|
@ -22,6 +22,7 @@
|
|||
- Minor: Show channels live now enabled by default
|
||||
- Minor: Bold usernames enabled by default
|
||||
- Minor: Improve UX of the "Login expired!" message (#2029)
|
||||
- Minor: PageUp and PageDown now scroll in the selected split (#2070, #2081)
|
||||
- Bugfix: Fix bug preventing users from setting the highlight color of the second entry in the "User" highlights tab (#1898)
|
||||
- Bugfix: Fix bug where the "check user follow state" event could trigger a network request requesting the user to follow or unfollow a user. By itself its quite harmless as it just repeats to Twitch the same follow state we had, so no follows should have been lost by this but it meant there was a rogue network request that was fired that could cause a crash (#1906)
|
||||
- Bugfix: /usercard command will now respect the "Automatically close user popup" setting (#1918)
|
||||
|
|
|
@ -66,6 +66,10 @@ KeyboardSettingsPage::KeyboardSettingsPage()
|
|||
form->addRow(new QLabel("Ctrl + P"), new QLabel("Open Settings menu"));
|
||||
form->addRow(new QLabel("F5"),
|
||||
new QLabel("Reload subscriber and channel emotes"));
|
||||
|
||||
form->addItem(new QSpacerItem(16, 16));
|
||||
form->addRow(new QLabel("PageUp"), new QLabel("Scroll up"));
|
||||
form->addRow(new QLabel("PageDown"), new QLabel("Scroll down"));
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue