summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-11 14:34:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-11 14:34:42 +0100
commit72cf5c1727345cca277b36702a59c58b9be5ef58 (patch)
treeef49ebc865482c6ef7ecf507d8d740cd41e96fa4 /src/webview.cpp
parentctrl + click open new tab AND select (diff)
downloadrekonq-72cf5c1727345cca277b36702a59c58b9be5ef58.tar.xz
( SHIFT + ) CTRL + TAB switching. Finally!!
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 );
+}
+