From a881ade2023a6e602097b0ae28c515fc3e9c5e8a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 27 Feb 2016 16:40:38 +0000 Subject: Key bindings; rewire vomnibar (fix minor error). --- background_scripts/commands.coffee | 1 + background_scripts/main.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index a62c674e..a82a6dcb 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -374,6 +374,7 @@ commandDescriptions = moveTabLeft: ["Move tab to the left", { background: true, passCountToFunction: true }] moveTabRight: ["Move tab to the right", { background: true, passCountToFunction: true }] + # These are background-page commands because all requests go via the background page. "Vomnibar.activate": ["Open URL, bookmark, or history entry", { background: true, noRepeat: true }] "Vomnibar.activateInNewTab": ["Open URL, bookmark, history entry, in a new tab", { background: true, noRepeat: true }] "Vomnibar.activateTabSelection": ["Search through your open tabs", { background: true, noRepeat: true }] diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 8d2b4248..7975ec6d 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -379,7 +379,7 @@ openVomnibar = (tabId, frameId, registryEntry) -> runBackgroundCommand = ({frameId, registryEntry, count}, sender) -> if registryEntry.command.split(".")[0] == "Vomnibar" openVomnibar sender.tab.id, frameId, registryEntry - if registryEntry.passCountToFunction + else if registryEntry.passCountToFunction BackgroundCommands[registryEntry.command] count, frameId else if registryEntry.noRepeat BackgroundCommands[registryEntry.command] frameId -- cgit v1.2.3