diff options
| -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 |
