aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linkHints.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/linkHints.js b/linkHints.js
index c5ad6066..65d310b8 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -489,9 +489,9 @@ function initializeLinkHints() {
}
}
} else if (event.keyCode == keyCodes.enter) {
- // activate the lowest-numbered link hint
+ // activate the lowest-numbered link hint that is visible
for (var i = 0; i < this.hintMarkers.length; i++)
- if (this.hintMarkers[i].getAttribute('filtered') != 'true') {
+ if (this.hintMarkers[i].style.display != 'none') {
this.activateLink(this.hintMarkers[i].clickableItem);
break;
}