1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:17:59 +01:00

Open the firstrun page in a new tab.

This commit is contained in:
Kris Maglione
2010-11-19 16:30:38 -05:00
parent 8b1a5132b7
commit 2df24c410d
5 changed files with 25 additions and 28 deletions

View File

@@ -573,14 +573,10 @@ const Tabs = Module("tabs", {
commands.add(["tab"],
"Execute a command and tell it to output in a new tab",
function (args) {
try {
var force = dactyl.forceNewTab;
dactyl.forceNewTab = true;
dactyl.execute(args[0] || "", null, true);
}
finally {
dactyl.forceNewTab = force;
}
dactyl.withSavedValues(["forceNewTab"], function () {
this.forceNewTab = true;
this.execute(args[0] || "", null, true);
});
}, {
argCount: "+",
completer: function (context) completion.ex(context),