From 4be03ffc25b3f9570f546910d5dbe154af4590b2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Oct 2020 10:59:33 +0300 Subject: [PATCH] Fix PageUp/PageDown scrolling in Replies section. Fixes #8666. --- .../history/view/history_view_replies_section.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp index 00977a96ca..a343554153 100644 --- a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp @@ -531,7 +531,7 @@ void RepliesWidget::setupComposeControls() { //if (const auto item = messages.lastSentMessage(_history)) { // _inner->editMessageRequestNotify(item->fullId()); //} else { - // _scroll->keyPressEvent(e); + _scroll->keyPressEvent(e); //} } else { _scroll->keyPressEvent(e); @@ -540,6 +540,12 @@ void RepliesWidget::setupComposeControls() { } else if (e->key() == Qt::Key_Down) { _scroll->keyPressEvent(e); e->accept(); + } else if (e->key() == Qt::Key_PageDown) { + _scroll->keyPressEvent(e); + e->accept(); + } else if (e->key() == Qt::Key_PageUp) { + _scroll->keyPressEvent(e); + e->accept(); } }, lifetime());