1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 19:22:25 +01:00

[muttator] m mapping for new message, and y mapping in compose to send mail

This commit is contained in:
Martin Stubenschrott
2008-05-14 12:45:54 +00:00
parent 64b0e3b8e1
commit 00dd55021f
2 changed files with 13 additions and 0 deletions

View File

@@ -264,6 +264,10 @@ liberator.Mail = function ()
// SENDING MESSAGES // SENDING MESSAGES
liberator.mappings.add(modes, ["m"],
"Compose a new message",
function () { goOpenNewMessage(); });
liberator.mappings.add(modes, ["r"], liberator.mappings.add(modes, ["r"],
"Reply to sender", "Reply to sender",
function () { goDoCommand("cmd_reply"); }); function () { goDoCommand("cmd_reply"); });

View File

@@ -93,10 +93,19 @@ liberator.config = {
["o"], "Open a message", ["o"], "Open a message",
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); }); function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });
// TODO: move elsewhere
liberator.mappings.add([liberator.modes.COMPOSE], liberator.mappings.add([liberator.modes.COMPOSE],
["e"], "Edit message", ["e"], "Edit message",
function () { liberator.editor.editWithExternalEditor(); }); function () { liberator.editor.editWithExternalEditor(); });
liberator.mappings.add([liberator.modes.COMPOSE],
["y"], "Send message now",
function () { goDoCommand("cmd_sendNow"); });
liberator.mappings.add([liberator.modes.COMPOSE],
["Y"], "Send message later",
function () { goDoCommand("cmd_sendLater"); });
// don't wait too long when selecting new messages // don't wait too long when selecting new messages
// GetThreadTree()._selectDelay = 300; // TODO: make configurable // GetThreadTree()._selectDelay = 300; // TODO: make configurable
this.isComposeWindow = window.wintype == "msgcompose"; this.isComposeWindow = window.wintype == "msgcompose";