mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Re-fixed focus capture from compose search widget.
This commit is contained in:
parent
043d97cfdf
commit
2b122087c4
1 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ rpl::producer<not_null<QKeyEvent*>> TopBar::keyEvents() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TopBar::setInnerFocus() {
|
void TopBar::setInnerFocus() {
|
||||||
if (Ui::InFocusChain(_select)) {
|
if (Ui::AppInFocus() && Ui::InFocusChain(_select->window())) {
|
||||||
_select->setInnerFocus();
|
_select->setInnerFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1035,7 +1035,7 @@ ComposeSearch::Inner::Inner(
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComposeSearch::Inner::setInnerFocus() {
|
void ComposeSearch::Inner::setInnerFocus() {
|
||||||
if (Ui::InFocusChain(_topBar)) {
|
if (Ui::AppInFocus() && Ui::InFocusChain(_topBar->window())) {
|
||||||
_topBar->setInnerFocus();
|
_topBar->setInnerFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue