aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorJez Ng2013-03-02 21:49:56 -0500
committerJez Ng2013-03-02 22:00:59 -0500
commit061d1b02f79c46461fd848703311864ca9cabbe9 (patch)
tree960c0e69681a2ded5dfe6e5df76746f159186d8e /background_scripts/commands.coffee
parenta83d6191de46b2827e6ad7fa6205991fa63934ec (diff)
downloadvimium-061d1b02f79c46461fd848703311864ca9cabbe9.tar.bz2
Disable repeated tab closing. Refs #555.
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee6
1 files changed, 4 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 1db7d980..98724a20 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -21,6 +21,7 @@ Commands =
description: description
isBackgroundCommand: options.background
passCountToFunction: options.passCountToFunction
+ noRepeat: options.noRepeat
mapKeyToCommand: (key, command) ->
unless @availableCommands[command]
@@ -31,6 +32,7 @@ Commands =
command: command
isBackgroundCommand: @availableCommands[command].isBackgroundCommand
passCountToFunction: @availableCommands[command].passCountToFunction
+ noRepeat: @availableCommands[command].noRepeat
unmapKey: (key) -> delete @keyToCommandRegistry[key]
@@ -63,7 +65,7 @@ Commands =
continue unless @availableCommands[vimiumCommand]
- console.log("Mapping", key, "to", vimiumCommand)
+ konsole.log("Mapping", key, "to", vimiumCommand)
@mapKeyToCommand(key, vimiumCommand)
else if (lineCommand == "unmap")
continue if (splitLine.length != 2)
@@ -236,7 +238,7 @@ commandDescriptions =
lastTab: ["Go to the last tab", { background: true }]
createTab: ["Create new tab", { background: true }]
duplicateTab: ["Duplicate current tab", { background: true }]
- removeTab: ["Close current tab", { background: true }]
+ removeTab: ["Close current tab", { background: true, noRepeat: true }]
restoreTab: ["Restore closed tab", { background: true }]
"Vomnibar.activate": ["Open URL, bookmark, or history entry"]