mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 23:14:12 +01:00
some small code cleanup
This commit is contained in:
@@ -95,36 +95,6 @@ liberator.config = {
|
||||
|
||||
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
|
||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||
this.isComposeWindow = window.wintype == "msgcompose";
|
||||
@@ -132,7 +102,31 @@ liberator.config = {
|
||||
// load Muttator specific modules
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user