From e9b44332ea780f544afb8d17adc626259589a5d5 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 23 Oct 2009 22:40:16 +0200 Subject: no shift + arrows scrolling actions for rekonq 0.3 This to let shift + arrow selection to work properly --- src/webview.cpp | 21 +++------------------ 1 file 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); -- cgit v1.2.1