diff options
| author | ilya | 2010-03-09 21:41:10 -0800 |
|---|---|---|
| committer | ilya | 2010-03-09 21:41:10 -0800 |
| commit | 201e52bc992c94e1964ec6d4aaadff6e4096c2f8 (patch) | |
| tree | 16e6b6d43f8ce40c8dc1bd195e2714b3668171a1 /background_page.html | |
| parent | 934defddd789a20f314acd925c315dbc992c2c6b (diff) | |
| download | vimium-201e52bc992c94e1964ec6d4aaadff6e4096c2f8.tar.bz2 | |
Refresh completion keys on all tabs and associated data structures after key mappings are saved.
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 10 |
1 files changed, 10 insertions, 0 deletions
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. |
