1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 11:04:12 +01:00

tab related mappings for muttator, thanks teramako

This commit is contained in:
Martin Stubenschrott
2008-06-02 14:20:28 +00:00
parent 20a672a961
commit e49aed94df
6 changed files with 314 additions and 238 deletions

View File

@@ -223,6 +223,18 @@ liberator.Mail = function () //{{{
"Inspect (focus) message",
function () { content.focus(); });
liberator.mappings.add(modes, ["I"],
"Open the message in new tab",
function ()
{
if (gDBView && gDBView.selection.count < 1)
{
liberator.echoerr("Message is not selected");
return;
}
MsgOpenNewTabForMessage();
});
liberator.mappings.add(modes, ["<Space>"],
"Scroll message or select next unread one",
function () { return true; },
@@ -583,6 +595,8 @@ liberator.Mail = function () //{{{
var folder = liberator.mail.getFolders(args, true, true)[count];
if (!folder)
liberator.echoerr("Folder \"" + args + "\" does not exist");
else if (liberator.forceNewTab)
MsgOpenNewTabForFolder(folder.URI);
else
SelectFolder(folder.URI);
},