mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed search shortcut in section for comments.
This commit is contained in:
parent
c08266f81b
commit
17cdc2b585
1 changed files with 2 additions and 3 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue