diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 17:46:00 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 17:46:00 +0200 |
commit | 6af8043ea81634d826508e2bbaf02cdeedd8cd7f (patch) | |
tree | 3e0e6b13bbc946c2693045f465f161e3cbb09c3b | |
parent | Krazy fixes for 0.2.71 (diff) | |
download | rekonq-6af8043ea81634d826508e2bbaf02cdeedd8cd7f.tar.xz |
CTRL has been promoted to rekonq favorite modifier...
:D
-rw-r--r-- | src/webview.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
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; |