aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee7
1 files changed, 5 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index b46175fb..26942a30 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -117,11 +117,14 @@ window.initializeModes = ->
@setKeyMapping changes.normalModeKeyStateMapping.newValue
commandHandler: (registryEntry, count) ->
+ count *= registryEntry.options.count ? 1
+ count = 1 if registryEntry.noRepeat
+ # TODO: Repeat limit.
# TODO: Special handling of Vomnibar.
+ # TODO: Fix passKeys.
if registryEntry.isBackgroundCommand
- true # Not yet implemnted.
+ chrome.runtime.sendMessage { handler: "runBackgroundCommand", frameId, registryEntry, count}
else
- count = 1 if registryEntry.noRepeat
if registryEntry.passCountToFunction
Utils.invokeCommandString registryEntry.command, [count]
else