mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix accidental search focusing.
This commit is contained in:
@@ -2644,6 +2644,10 @@ bool MainWidget::eventFilter(QObject *o, QEvent *e) {
|
||||
if (e->type() == QEvent::FocusIn) {
|
||||
if (widget && relevantForDialogsFocus(widget)) {
|
||||
_dialogs->updateHasFocus(widget);
|
||||
} else if (widget == window()) {
|
||||
crl::on_main(this, [=] {
|
||||
_controller->widget()->setInnerFocus();
|
||||
});
|
||||
}
|
||||
} else if (e->type() == QEvent::MouseButtonPress) {
|
||||
if (widget && (widget->window() == window())) {
|
||||
|
Reference in New Issue
Block a user