diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 558f52fc..850229d1 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -770,22 +770,21 @@ void WebView::keyReleaseEvent(QKeyEvent *event) // access keys management if (ReKonfig::accessKeysEnabled()) { - m_accessKeysPressed = (event->key() == Qt::Key_Control); + if (m_accessKeysPressed && event->key() != Qt::Key_Control) + m_accessKeysPressed = false; - if (!m_accessKeysPressed) + if (m_accessKeysPressed && !(event->modifiers() & Qt::ControlModifier)) { - if (checkForAccessKey(event)) - { - hideAccessKeys(); - event->accept(); - return; - } - hideAccessKeys(); + kDebug() << "Shotting access keys"; + QTimer::singleShot(200, this, SLOT(accessKeyShortcut())); + event->accept(); + return; } else { - kDebug() << "Shotting access keys"; - QTimer::singleShot(200, this, SLOT(accessKeyShortcut())); + hideAccessKeys(); + event->accept(); + return; } } |