diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-08 02:58:26 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-08 02:58:26 +0200 |
commit | bbffd92ffa7a94ef86aaf71c08b8f21fbe06ca56 (patch) | |
tree | e61ebd01a1fd7e81fb671779a3fc0edbf00a00a9 /src/webview.cpp | |
parent | rekonq 0.2.64 with rekonq 0.3 homepage! (diff) | |
download | rekonq-bbffd92ffa7a94ef86aaf71c08b8f21fbe06ca56.tar.xz |
HACK: Ctrl + C shortcut
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 12 |
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 |