diff options
| author | Jez Ng | 2012-09-08 01:47:50 -0400 |
|---|---|---|
| committer | Jez Ng | 2012-09-08 01:47:50 -0400 |
| commit | 8437dd96144475343562c9a6aa2f14469bc75a56 (patch) | |
| tree | 729e5ebf0fd662904fcc32c7d2bbd3ba041f84ca | |
| parent | b31846eb51113deb0cf40cc57d4fa5f2880a8e96 (diff) | |
| download | vimium-8437dd96144475343562c9a6aa2f14469bc75a56.tar.bz2 | |
Fix completion key generation.
| -rw-r--r-- | background_scripts/main.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 707febc9..4a68ced6 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -143,9 +143,9 @@ fetchFileContents = (extensionFileName) -> # # Returns the keys that can complete a valid command given the current key queue. # -getCompletionKeysRequest = (request) -> +getCompletionKeysRequest = (request, keysToCheck = "") -> name: "refreshCompletionKeys" - completionKeys: generateCompletionKeys() + completionKeys: generateCompletionKeys(keysToCheck) validFirstKeys: validFirstKeys # @@ -472,7 +472,7 @@ checkKeyQueue = (keysToCheck, tabId, frameId) -> # If we haven't sent the completion keys piggybacked on executePageCommand, # send them by themselves. unless refreshedCompletionKeys - chrome.tabs.sendRequest(tabId, getCompletionKeysRequest(), null) + chrome.tabs.sendRequest(tabId, getCompletionKeysRequest(null, newKeyQueue), null) newKeyQueue |
