diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-08-02 11:12:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-08-02 11:12:19 +0200 |
commit | a47bb9051d9a3253c1a325bd7e9d6910780cb9cd (patch) | |
tree | 0c48cf22f25314cdcc9be5153fbc1138f9a2797a /src | |
parent | bookmark this link action in link's context menu REVIEW:102152 (diff) | |
download | rekonq-a47bb9051d9a3253c1a325bd7e9d6910780cb9cd.tar.xz |
Revert vi-like shortcuts implementation
In fact, until we have one way to understand if a widget (eg: a
lineedit or a textarea) steals the focus before, this feature will
break their usage.
CCBUG: 238761
Diffstat (limited to 'src')
-rw-r--r-- | src/webview.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 1490c9bc..d416af49 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -636,28 +636,6 @@ void WebView::keyPressEvent(QKeyEvent *event) } } - // vi-like navigation - if (event->key() == Qt::Key_J && event->modifiers() == Qt::NoModifier) - { - event->accept(); - event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier); - } - else if (event->key() == Qt::Key_K && event->modifiers() == Qt::NoModifier) - { - event->accept(); - event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Up, Qt::NoModifier); - } - else if (event->key() == Qt::Key_L && event->modifiers() == Qt::NoModifier) - { - event->accept(); - event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier); - } - else if (event->key() == Qt::Key_H && event->modifiers() == Qt::NoModifier) - { - event->accept(); - event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier); - } - KWebView::keyPressEvent(event); } |