1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

WebInspector: Fix searching with Ctrl+F in inspector

Don't eat key events so inspector's search function can be used.
This commit is contained in:
David Rosca 2015-10-04 19:44:25 +02:00
parent 102ee62d3d
commit 6857270057
2 changed files with 15 additions and 0 deletions

View File

@ -87,3 +87,15 @@ void WebInspector::updateCloseButton()
" window.close();"
"})"));
}
void WebInspector::keyPressEvent(QKeyEvent *event)
{
Q_UNUSED(event)
// Stop propagation
}
void WebInspector::keyReleaseEvent(QKeyEvent *event)
{
Q_UNUSED(event)
// Stop propagation
}

View File

@ -44,6 +44,9 @@ private slots:
void updateCloseButton();
private:
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
static QList<QWebEngineView*> s_views;
};