Skip to content

Commit

Permalink
fix(browser): send key events to web view's focus proxy
Browse files Browse the repository at this point in the history
Fixes regression introduced by migration to Qt WebEngine,
which caused search toolbar not to propagate navigation keys
to the web view.

Related to #703.
  • Loading branch information
trollixx committed Oct 5, 2023
1 parent d5ce8a0 commit f2212eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/browser/searchtoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2212eb

Please sign in to comment.