summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-08 02:58:26 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-08 02:58:26 +0200
commitbbffd92ffa7a94ef86aaf71c08b8f21fbe06ca56 (patch)
treee61ebd01a1fd7e81fb671779a3fc0edbf00a00a9
parentrekonq 0.2.64 with rekonq 0.3 homepage! (diff)
downloadrekonq-bbffd92ffa7a94ef86aaf71c08b8f21fbe06ca56.tar.xz
HACK: Ctrl + C shortcut
-rw-r--r--src/webview.cpp12
-rw-r--r--src/webview.h3
2 files changed, 14 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 68311315..a2662399 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -421,3 +421,15 @@ void WebView::openLinkInNewTab()
KUrl url(a->data().toUrl());
Application::instance()->loadUrl(url, Rekonq::SettingOpenTab);
}
+
+
+// HACK short term hack: remove this function, unuseful in kdewebkit porting
+void WebView::keyPressEvent(QKeyEvent *event)
+{
+ if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_C))
+ {
+ triggerPageAction(QWebPage::Copy);
+ return;
+ }
+ QWebView::keyPressEvent(event);
+} \ No newline at end of file
diff --git a/src/webview.h b/src/webview.h
index 0b4614a1..3388348d 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -57,7 +57,8 @@ protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void wheelEvent(QWheelEvent *event);
-
+ void keyPressEvent(QKeyEvent *event);
+
private slots:
void setStatusBarText(const QString &string);
void slotSearch();