summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-23 17:46:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-23 17:46:00 +0200
commit6af8043ea81634d826508e2bbaf02cdeedd8cd7f (patch)
tree3e0e6b13bbc946c2693045f465f161e3cbb09c3b
parentKrazy fixes for 0.2.71 (diff)
downloadrekonq-6af8043ea81634d826508e2bbaf02cdeedd8cd7f.tar.xz
CTRL has been promoted to rekonq favorite modifier...
:D
-rw-r--r--src/webview.cpp15
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;