From 8437dd96144475343562c9a6aa2f14469bc75a56 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sat, 8 Sep 2012 01:47:50 -0400 Subject: Fix completion key generation. --- background_scripts/main.coffee | 6 +++--- 1 file 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 -- cgit v1.2.3