fix(browser): send key events to web view's focus proxy

Fixes regression introduced by migration to Qt WebEngine,
which caused search toolbar not to propagate navigation keys
to the web view.

Related to #703.
This commit is contained in:
Oleg Shparber 2023-10-05 03:32:13 -04:00
parent d5ce8a0f04
commit f2212eb4f0

View File

@ -137,7 +137,7 @@ bool SearchToolBar::eventFilter(QObject *object, QEvent *event)
case Qt::Key_Up:
case Qt::Key_PageDown:
case Qt::Key_PageUp:
QCoreApplication::sendEvent(m_webView, event);
QCoreApplication::sendEvent(m_webView->focusProxy(), event);
return true;
default:
break;