summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();