summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index b03c9291..19bf60ee 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -177,7 +177,6 @@ WebView::WebView(QWidget* parent)
connect(page(), SIGNAL(loadingUrl(const QUrl&)), this, SIGNAL(urlChanged(const QUrl &)));
connect(page(), SIGNAL(downloadRequested(const QNetworkRequest &)), this, SLOT(downloadRequested(const QNetworkRequest &)));
page()->setForwardUnsupportedContent(true);
-
}
@@ -297,3 +296,22 @@ void WebView::downloadRequested(const QNetworkRequest &request)
{
BrowserApplication::downloadManager()->download(request);
}
+
+
+void WebView::keyPressEvent(QKeyEvent *event)
+{
+ if ( (event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_Tab) )
+ {
+ emit ctrlTabPressed();
+ return;
+ }
+
+ if( (event->modifiers() == Qt::ControlModifier + Qt::ShiftModifier) && (event->key() == Qt::Key_Backtab) )
+ {
+ emit shiftCtrlTabPressed();
+ return;
+ }
+
+ QWebView::keyPressEvent( event );
+}
+