summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-23 21:42:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-23 21:42:58 +0200
commit27769a7ec919c39c1bfec77b01be92c6c60bc73c (patch)
treeddc31d645102415dc5dd5d428f8131d921002e2c /src/webview.cpp
parentCTRL has been promoted to rekonq favorite modifier... (diff)
downloadrekonq-27769a7ec919c39c1bfec77b01be92c6c60bc73c.tar.xz
Revert "CTRL has been promoted to rekonq favorite modifier..."
This reverts commit 6af8043ea81634d826508e2bbaf02cdeedd8cd7f.
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index ce38d2ef..8380d064 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -545,17 +545,16 @@ void WebView::openLinkInNewTab()
void WebView::keyPressEvent(QKeyEvent *event)
{
- // CTRL has been promoted rekonq favorite modifier.. :D
- if ( event->modifiers() == Qt::ControlModifier )
+ if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_C))
+ {
+ triggerPageAction(QWebPage::Copy);
+ return;
+ }
+
+ if (event->modifiers() == Qt::ShiftModifier)
{
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;