mirror of
https://github.com/zealdocs/zeal.git
synced 2024-08-17 02:00:25 +03:00
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:
parent
d5ce8a0f04
commit
f2212eb4f0
@ -137,7 +137,7 @@ bool SearchToolBar::eventFilter(QObject *object, QEvent *event)
|
|||||||
case Qt::Key_Up:
|
case Qt::Key_Up:
|
||||||
case Qt::Key_PageDown:
|
case Qt::Key_PageDown:
|
||||||
case Qt::Key_PageUp:
|
case Qt::Key_PageUp:
|
||||||
QCoreApplication::sendEvent(m_webView, event);
|
QCoreApplication::sendEvent(m_webView->focusProxy(), event);
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user