diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index ce38d2ef..7efded7f 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -545,32 +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)) { - 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; - case Qt::Key_Up: - startScrollAnimation(WebView::Up); - return; - case Qt::Key_Left: - startScrollAnimation(WebView::Left); - return; - case Qt::Key_Right: - startScrollAnimation(WebView::Right); - return; - default: - break; - } + triggerPageAction(QWebPage::Copy); + return; + } + + if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_A)) + { + triggerPageAction(QWebPage::SelectAll); + return; } QWebView::keyPressEvent(event); |