From f9998b6d62d5c0fa2b7e262a5b698c5dc3a1252e Mon Sep 17 00:00:00 2001 From: jez Date: Thu, 30 Dec 2010 14:58:38 +0800 Subject: Reset hintKeystrokeQueue when user enters filtering link text --- linkHints.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linkHints.js b/linkHints.js index db79b782..cff513db 100644 --- a/linkHints.js +++ b/linkHints.js @@ -428,6 +428,9 @@ function initializeLinkHints() { matchString = linkHints.hintKeystrokeQueue.join(""); linksMatched = linkHints.highlightLinkMatches(matchString); } else { + // since we might renumber the hints, the current hintKeyStrokeQueue + // should be rendered invalid (i.e. reset). + linkHints.hintKeystrokeQueue = []; linkHints.linkTextKeystrokeQueue.push(keyChar); matchString = linkHints.linkTextKeystrokeQueue.join(""); linksMatched = linkHints.filterLinkHints(matchString); -- cgit v1.2.3