From 201e52bc992c94e1964ec6d4aaadff6e4096c2f8 Mon Sep 17 00:00:00 2001 From: ilya Date: Tue, 9 Mar 2010 21:41:10 -0800 Subject: Refresh completion keys on all tabs and associated data structures after key mappings are saved. --- background_page.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'background_page.html') diff --git a/background_page.html b/background_page.html index 6ec9f2af..978409bd 100644 --- a/background_page.html +++ b/background_page.html @@ -367,6 +367,16 @@ } } + function refreshCompletionKeysAfterMappingSave() { + validFirstKeys = {}; + singleKeyCommands = []; + + populateValidFirstKeys(); + populateSingleKeyCommands(); + + sendRequestToAllTabs({ name: "refreshCompletionKeys", completionKeys: generateCompletionKeys() }); + } + /* * Generates a list of keys that can complete a valid command given the current key queue or the one passed * in. -- cgit v1.2.3