diff options
| author | mrmr1993 | 2014-08-16 22:17:01 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2014-10-25 23:06:51 +0100 | 
| commit | d2ff14944b2b90812f29da8cd12de1b39f7f3404 (patch) | |
| tree | 9b884012e75ea95fe0be57ec7bb8743b447f0835 /background_scripts/main.coffee | |
| parent | a485fe7500ce0d8cad0b6f5a3d20b279d738521b (diff) | |
| download | vimium-d2ff14944b2b90812f29da8cd12de1b39f7f3404.tar.bz2 | |
Add noRepeat to relevent frontend commands
The use of Vomnibar commands with a numerical prefix > 1 is broken and
non-trivial to fix. This patch introduces the `noRepeat` property for
frontend commands, applying it to all Vomnibar commands and several
others.
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 352cfa48..b8878358 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -526,7 +526,10 @@ checkKeyQueue = (keysToCheck, tabId, frameId) ->    if (Commands.keyToCommandRegistry[command])      registryEntry = Commands.keyToCommandRegistry[command] -    if !registryEntry.isBackgroundCommand +    if registryEntry.noRepeat +      count = 1 + +    if not registryEntry.isBackgroundCommand        chrome.tabs.sendMessage(tabId,          name: "executePageCommand",          command: registryEntry.command,  | 
