Fixed ability to use PageDown/PageUp in section for pinned messages.

This commit is contained in:
23rd 2025-07-22 16:02:36 +03:00 committed by John Preston
parent 2a15faf12e
commit 15706a7af8

View file

@ -176,6 +176,11 @@ PinnedWidget::PinnedWidget(
onScroll();
}, lifetime());
_inner->scrollKeyEvents(
) | rpl::start_with_next([=](not_null<QKeyEvent*> e) {
_scroll->keyPressEvent(e);
}, lifetime());
setupClearButton();
setupTranslateBar();
Window::SetupSwipeBackSection(this, _scroll.get(), _inner);