Fixed search shortcut in section for comments.

This commit is contained in:
23rd 2025-01-24 16:24:53 +03:00 committed by John Preston
parent c08266f81b
commit 17cdc2b585

View file

@ -2803,8 +2803,7 @@ void RepliesWidget::setupDragArea() {
void RepliesWidget::setupShortcuts() { void RepliesWidget::setupShortcuts() {
Shortcuts::Requests( Shortcuts::Requests(
) | rpl::filter([=] { ) | rpl::filter([=] {
return _topic return Ui::AppInFocus()
&& Ui::AppInFocus()
&& Ui::InFocusChain(this) && Ui::InFocusChain(this)
&& !controller()->isLayerShown() && !controller()->isLayerShown()
&& (Core::App().activeWindow() == &controller()->window()); && (Core::App().activeWindow() == &controller()->window());
@ -2831,7 +2830,7 @@ void RepliesWidget::searchInTopic() {
} }
updateControlsGeometry(); updateControlsGeometry();
}; };
const auto from = (PeerData*)nullptr; const auto from = (PeerData*)(nullptr);
_composeSearch = std::make_unique<HistoryView::ComposeSearch>( _composeSearch = std::make_unique<HistoryView::ComposeSearch>(
this, this,
controller(), controller(),