From f2212eb4f0c9b39a0a207995b097a6b0238b3cbb Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Thu, 5 Oct 2023 03:32:13 -0400 Subject: [PATCH] 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. --- src/libs/browser/searchtoolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/browser/searchtoolbar.cpp b/src/libs/browser/searchtoolbar.cpp index c872980b..9a966e26 100644 --- a/src/libs/browser/searchtoolbar.cpp +++ b/src/libs/browser/searchtoolbar.cpp @@ -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;