aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 5ae80235..a3857d61 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
@@ -553,7 +553,7 @@ sendRequestHandlers =
refreshCompleter: refreshCompleter
# Convenience function for development use.
-window.runTests = -> open(chrome.extension.getURL('test_harnesses/automated/automated.html'))
+window.runTests = -> open(chrome.extension.getURL('tests/dom_tests/dom_tests.html'))
#
# Begin initialization.