diff options
-rw-r--r-- | src/webview.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index ce38d2ef..8380d064 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -545,17 +545,16 @@ void WebView::openLinkInNewTab() void WebView::keyPressEvent(QKeyEvent *event) { - // CTRL has been promoted rekonq favorite modifier.. :D - if ( event->modifiers() == Qt::ControlModifier ) + if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_C)) + { + triggerPageAction(QWebPage::Copy); + return; + } + + if (event->modifiers() == Qt::ShiftModifier) { switch (event->key()) { - case Qt::Key_A: - triggerPageAction(QWebPage::SelectAll); - return; - case Qt::Key_C: - triggerPageAction(QWebPage::Copy); - return; case Qt::Key_Down: startScrollAnimation(WebView::Down); return; |