1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

newtab option, and better :tab behavior, thanks teramako

This commit is contained in:
Martin Stubenschrott
2008-05-02 08:54:30 +00:00
parent 5a28cd8948
commit 7b7d39cc8d
6 changed files with 69 additions and 16 deletions

View File

@@ -228,7 +228,12 @@ liberator.config = {
liberator.commands.add(["downl[oads]", "dl"],
"Show progress of current downloads",
function () { liberator.open("chrome://mozapps/content/downloads/downloads.xul", liberator.NEW_TAB); });
function ()
{
liberator.open("chrome://mozapps/content/downloads/downloads.xul",
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("downloads") != -1) ?
liberator.NEW_TAB : liberator.CURRENT_TAB);
});
liberator.commands.add(["o[pen]", "e[dit]"],
"Open one or more URLs in the current tab",