mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 04:25:45 +01:00
some small code cleanup
This commit is contained in:
@@ -247,6 +247,10 @@ liberator.Mail = function () //{{{
|
|||||||
MsgOpenNewTabForMessage();
|
MsgOpenNewTabForMessage();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*liberator.mappings.add([liberator.modes.NORMAL],
|
||||||
|
["o"], "Open a message",
|
||||||
|
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["<Space>"],
|
liberator.mappings.add(modes, ["<Space>"],
|
||||||
"Scroll message or select next unread one",
|
"Scroll message or select next unread one",
|
||||||
function () { return true; },
|
function () { return true; },
|
||||||
|
|||||||
@@ -95,36 +95,6 @@ liberator.config = {
|
|||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
/*liberator.mappings.add([liberator.modes.NORMAL],
|
|
||||||
["o"], "Open a message",
|
|
||||||
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
|
|
||||||
|
|
||||||
// TODO: move elsewhere, probably compose.js
|
|
||||||
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"); });
|
|
||||||
|
|
||||||
// FIXME: does not really work reliably
|
|
||||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
|
||||||
["t"], "Select To: field",
|
|
||||||
function () { awSetFocus(0, awGetInputElement(1)); });
|
|
||||||
|
|
||||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
|
||||||
["s"], "Select Subject: field",
|
|
||||||
function () { GetMsgSubjectElement().focus(); });
|
|
||||||
|
|
||||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
|
||||||
["i"], "Select message body",
|
|
||||||
function () { SetMsgBodyFrameFocus(); });
|
|
||||||
|
|
||||||
// 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";
|
||||||
@@ -132,7 +102,31 @@ liberator.config = {
|
|||||||
// load Muttator specific modules
|
// load Muttator specific modules
|
||||||
if (this.isComposeWindow)
|
if (this.isComposeWindow)
|
||||||
{
|
{
|
||||||
|
// TODO: move mappings elsewhere, probably compose.js
|
||||||
|
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"); });
|
||||||
|
|
||||||
|
// FIXME: does not really work reliably
|
||||||
|
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||||
|
["t"], "Select To: field",
|
||||||
|
function () { awSetFocus(0, awGetInputElement(1)); });
|
||||||
|
|
||||||
|
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||||
|
["s"], "Select Subject: field",
|
||||||
|
function () { GetMsgSubjectElement().focus(); });
|
||||||
|
|
||||||
|
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||||
|
["i"], "Select message body",
|
||||||
|
function () { SetMsgBodyFrameFocus(); });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user