From c89d16a2e9eba8514e263c679faa355b90c59d2e Mon Sep 17 00:00:00 2001 From: Marc Deop Date: Thu, 12 Jan 2012 23:46:03 +0100 Subject: Access Keys navigation Ported access keys navigation system from Arora and adapted to rekonq code. Also (by adjam), get sure access keys are removed on loadStarted REVIEW:103601 REVIEWED-BY: adjam --- src/webview.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/webview.h') diff --git a/src/webview.h b/src/webview.h index 95f27f17..0d94aaf6 100644 --- a/src/webview.h +++ b/src/webview.h @@ -37,6 +37,8 @@ //Qt Includes #include +#include +#include // Forward Declarations class WebPage; @@ -100,12 +102,22 @@ private Q_SLOTS: void stopScrolling(); void changeWindowIcon(); + void accessKeyShortcut(); + void hideAccessKeys(); + + void loadStarted(); + Q_SIGNALS: void loadUrl(const KUrl &, const Rekonq::OpenType &); void zoomChanged(int); void openPreviousInHistory(); void openNextInHistory(); +private: + bool checkForAccessKey(QKeyEvent *event); + void showAccessKeys(); + void makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element); + private: QPoint m_mousePos; QPoint m_clickPos; @@ -125,6 +137,11 @@ private: bool m_smoothScrolling; int m_dy; int m_smoothScrollSteps; + + // Access Keys + QList m_accessKeyLabels; + QHash m_accessKeyNodes; + bool m_accessKeysPressed; }; #endif -- cgit v1.2.1