From 6af8043ea81634d826508e2bbaf02cdeedd8cd7f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 23 Oct 2009 17:46:00 +0200 Subject: CTRL has been promoted to rekonq favorite modifier... :D --- src/webview.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 8380d064..ce38d2ef 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -545,16 +545,17 @@ void WebView::openLinkInNewTab() void WebView::keyPressEvent(QKeyEvent *event) { - if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_C)) - { - triggerPageAction(QWebPage::Copy); - return; - } - - if (event->modifiers() == Qt::ShiftModifier) + // CTRL has been promoted rekonq favorite modifier.. :D + if ( event->modifiers() == Qt::ControlModifier ) { 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; -- cgit v1.2.1