1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-11 14:35:48 +01:00

changed some muttator bindings

This commit is contained in:
Martin Stubenschrott
2008-06-04 03:06:34 +00:00
parent 5d272fea03
commit 813e27b709
2 changed files with 9 additions and 10 deletions

View File

@@ -473,6 +473,7 @@ const liberator = (function () //{{{
getService(Components.interfaces.nsISound); getService(Components.interfaces.nsISound);
soundService.beep(); soundService.beep();
} }
return false; // so you can do: if (...) return liberator.beep();
}, },
// Execute an ex command like str=":zoom 300" // Execute an ex command like str=":zoom 300"

View File

@@ -228,10 +228,8 @@ liberator.Mail = function () //{{{
function () function ()
{ {
if (gDBView && gDBView.selection.count < 1) if (gDBView && gDBView.selection.count < 1)
{ return liberator.beep();
liberator.echoerr("Message is not selected");
return;
}
MsgOpenNewTabForMessage(); MsgOpenNewTabForMessage();
}); });
@@ -240,8 +238,7 @@ liberator.Mail = function () //{{{
function () { return true; }, function () { return true; },
{ flags: liberator.Mappings.flags.ALLOW_EVENT_ROUTING }); { flags: liberator.Mappings.flags.ALLOW_EVENT_ROUTING });
// TODO: change to "t" probably liberator.mappings.add(modes, ["t"],
liberator.mappings.add(modes, ["x"],
"Select thread", "Select thread",
function () { gDBView.ExpandAndSelectThreadByIndex(GetThreadTree().currentIndex, false); }); function () { gDBView.ExpandAndSelectThreadByIndex(GetThreadTree().currentIndex, false); });
@@ -525,7 +522,7 @@ liberator.Mail = function () //{{{
{ flags: liberator.Mappings.flags.COUNT }); { flags: liberator.Mappings.flags.COUNT });
// tagging messages // tagging messages
liberator.mappings.add(modes, ["tr"], liberator.mappings.add(modes, ["lr"],
"Toggle selected messages read", "Toggle selected messages read",
function () function ()
{ {
@@ -537,16 +534,16 @@ liberator.Mail = function () //{{{
MsgMarkMsgAsRead(); MsgMarkMsgAsRead();
}); });
liberator.mappings.add(modes, ["tR"], /*liberator.mappings.add(modes, ["tR"],
"Tag thread as read", "Tag thread as read",
function () function ()
{ {
// TODO: ensure thread or beep // TODO: ensure thread or beep
MsgMarkThreadAsRead(); MsgMarkThreadAsRead();
}); });*/
liberator.mappings.add(modes, ["ts"], liberator.mappings.add(modes, ["ls"],
"Toggle selected messages starred", "Toggle selected messages starred",
function () function ()
{ {
@@ -559,6 +556,7 @@ liberator.Mail = function () //{{{
MsgMarkMsgAsFlagged(); MsgMarkMsgAsFlagged();
}); });
// TODO: change binding?
liberator.mappings.add(modes, ["T"], liberator.mappings.add(modes, ["T"],
"Mark current folder as read", "Mark current folder as read",
function () function ()