summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp21
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);