mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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() {
|
||||
if (Ui::InFocusChain(_select)) {
|
||||
if (Ui::AppInFocus() && Ui::InFocusChain(_select->window())) {
|
||||
_select->setInnerFocus();
|
||||
}
|
||||
}
|
||||
|
@ -1035,7 +1035,7 @@ ComposeSearch::Inner::Inner(
|
|||
}
|
||||
|
||||
void ComposeSearch::Inner::setInnerFocus() {
|
||||
if (Ui::InFocusChain(_topBar)) {
|
||||
if (Ui::AppInFocus() && Ui::InFocusChain(_topBar->window())) {
|
||||
_topBar->setInnerFocus();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue