mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix forum search open by Ctrl+F.
This commit is contained in:
parent
f09a939a7c
commit
7db9abf725
1 changed files with 2 additions and 0 deletions
|
@ -999,6 +999,7 @@ void Widget::setupShortcuts() {
|
||||||
) | rpl::filter([=] {
|
) | rpl::filter([=] {
|
||||||
return isActiveWindow()
|
return isActiveWindow()
|
||||||
&& Ui::InFocusChain(this)
|
&& Ui::InFocusChain(this)
|
||||||
|
&& !_childList
|
||||||
&& !controller()->isLayerShown()
|
&& !controller()->isLayerShown()
|
||||||
&& !controller()->window().locked();
|
&& !controller()->window().locked();
|
||||||
}) | rpl::start_with_next([=](not_null<Shortcuts::Request*> request) {
|
}) | rpl::start_with_next([=](not_null<Shortcuts::Request*> request) {
|
||||||
|
@ -2723,6 +2724,7 @@ void Widget::openChildList(
|
||||||
*opacity = value;
|
*opacity = value;
|
||||||
update();
|
update();
|
||||||
_inner->update();
|
_inner->update();
|
||||||
|
_search->setVisible(value < 1.);
|
||||||
if (!value && _childListShadow.get() != shadow) {
|
if (!value && _childListShadow.get() != shadow) {
|
||||||
delete shadow;
|
delete shadow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue