diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 22:40:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 22:40:16 +0200 |
commit | e9b44332ea780f544afb8d17adc626259589a5d5 (patch) | |
tree | 764bfb4a78b652075f1343acf656a15b7cced24d | |
parent | Revert "CTRL has been promoted to rekonq favorite modifier..." (diff) | |
download | rekonq-e9b44332ea780f544afb8d17adc626259589a5d5.tar.xz |
no shift + arrows scrolling actions for rekonq 0.3
This to let shift + arrow selection to work properly
-rw-r--r-- | src/webview.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 8380d064..7efded7f 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -551,25 +551,10 @@ void WebView::keyPressEvent(QKeyEvent *event) return; } - if (event->modifiers() == Qt::ShiftModifier) + if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_A)) { - switch (event->key()) - { - 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::SelectAll); + return; } QWebView::keyPressEvent(event); |