summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index da7f802a..ac861fb0 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -1008,7 +1008,8 @@ void WebView::showAccessKeys()
const QRect geometry = element.geometry();
if (unusedKeys.isEmpty()
|| alreadyLabeled.contains(element)
- || geometry.size().isEmpty())
+ || geometry.size().isEmpty()
+ || !viewport.contains(geometry.topLeft()))
{
continue;
}