summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp12
1 files changed, 12 insertions, 0 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