mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 17:03:32 +02: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,11 +95,14 @@ liberator.config = {
|
|||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
/*liberator.mappings.add([liberator.modes.NORMAL],
|
// don't wait too long when selecting new messages
|
||||||
["o"], "Open a message",
|
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||||
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
|
this.isComposeWindow = window.wintype == "msgcompose";
|
||||||
|
|
||||||
// TODO: move elsewhere, probably compose.js
|
// load Muttator specific modules
|
||||||
|
if (this.isComposeWindow)
|
||||||
|
{
|
||||||
|
// TODO: move mappings elsewhere, probably compose.js
|
||||||
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(); });
|
||||||
@@ -124,15 +127,6 @@ liberator.config = {
|
|||||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||||
["i"], "Select message body",
|
["i"], "Select message body",
|
||||||
function () { SetMsgBodyFrameFocus(); });
|
function () { SetMsgBodyFrameFocus(); });
|
||||||
|
|
||||||
// don't wait too long when selecting new messages
|
|
||||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
|
||||||
this.isComposeWindow = window.wintype == "msgcompose";
|
|
||||||
|
|
||||||
// load Muttator specific modules
|
|
||||||
if (this.isComposeWindow)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user