From 6857270057fff7f868ca8b60bc4039fabf72c1eb Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 4 Oct 2015 19:44:25 +0200 Subject: [PATCH] WebInspector: Fix searching with Ctrl+F in inspector Don't eat key events so inspector's search function can be used. --- src/lib/webengine/webinspector.cpp | 12 ++++++++++++ src/lib/webengine/webinspector.h | 3 +++ 2 files changed, 15 insertions(+) diff --git a/src/lib/webengine/webinspector.cpp b/src/lib/webengine/webinspector.cpp index 563b5e7df..fce118836 100644 --- a/src/lib/webengine/webinspector.cpp +++ b/src/lib/webengine/webinspector.cpp @@ -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 +} diff --git a/src/lib/webengine/webinspector.h b/src/lib/webengine/webinspector.h index 2901a87ee..2c04ad603 100644 --- a/src/lib/webengine/webinspector.h +++ b/src/lib/webengine/webinspector.h @@ -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 s_views; };