aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_page.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index 132b9c4a..9640ab50 100644
--- a/background_page.html
+++ b/background_page.html
@@ -19,7 +19,9 @@
getSetting: getSetting
};
- var sendRequestHandlers = {};
+ var sendRequestHandlers = {
+ getCompletionKeys: getCompletionKeys
+ };
// Event handlers
var selectionChangedHandlers = [];
@@ -98,6 +100,13 @@
returnPort.postMessage({ zoomLevel: zoomLevel });
}
+ /**
+ * Returns the keys that can complete a valid command given the current key queue.
+ */
+ function getCompletionKeys(request) {
+ return {completionKeys: generateCompletionKeys()};
+ }
+
/*
* Used by the content scripts to get settings from the local storage.
*/