Fix forum search open by Ctrl+F.

This commit is contained in:
John Preston 2024-05-28 10:04:57 +04:00
parent f09a939a7c
commit 7db9abf725

View file

@ -999,6 +999,7 @@ void Widget::setupShortcuts() {
) | rpl::filter([=] {
return isActiveWindow()
&& Ui::InFocusChain(this)
&& !_childList
&& !controller()->isLayerShown()
&& !controller()->window().locked();
}) | rpl::start_with_next([=](not_null<Shortcuts::Request*> request) {
@ -2723,6 +2724,7 @@ void Widget::openChildList(
*opacity = value;
update();
_inner->update();
_search->setVisible(value < 1.);
if (!value && _childListShadow.get() != shadow) {
delete shadow;
}