Added a Scroll to top keyboard shortcut for splits (#3802)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Brian
2022-06-18 07:48:55 -04:00
committed by GitHub
parent fd87cbb626
commit 9583b49653
6 changed files with 17 additions and 0 deletions
+6
View File
@@ -333,6 +333,12 @@ void Split::addShortcuts()
getSettings()->enableSmoothScrollingNewMessages.getValue());
return "";
}},
{"scrollToTop",
[this](std::vector<QString>) -> QString {
this->getChannelView().getScrollBar().scrollToTop(
getSettings()->enableSmoothScrollingNewMessages.getValue());
return "";
}},
{"scrollPage",
[this](std::vector<QString> arguments) -> QString {
if (arguments.size() == 0)