mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 12:52:28 +01:00
[muttator] m mapping for new message, and y mapping in compose to send mail
This commit is contained in:
@@ -264,6 +264,10 @@ liberator.Mail = function ()
|
||||
|
||||
|
||||
// SENDING MESSAGES
|
||||
liberator.mappings.add(modes, ["m"],
|
||||
"Compose a new message",
|
||||
function () { goOpenNewMessage(); });
|
||||
|
||||
liberator.mappings.add(modes, ["r"],
|
||||
"Reply to sender",
|
||||
function () { goDoCommand("cmd_reply"); });
|
||||
|
||||
@@ -93,10 +93,19 @@ liberator.config = {
|
||||
["o"], "Open a message",
|
||||
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });
|
||||
|
||||
// TODO: move elsewhere
|
||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||
["e"], "Edit message",
|
||||
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
|
||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||
this.isComposeWindow = window.wintype == "msgcompose";
|
||||
|
||||
Reference in New Issue
Block a user