1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-21 07:51:30 +02:00

some small code cleanup

This commit is contained in:
Martin Stubenschrott
2008-06-12 00:55:47 +00:00
parent 29a387f870
commit bea52c9574
2 changed files with 28 additions and 30 deletions
+4
View File
@@ -247,6 +247,10 @@ liberator.Mail = function () //{{{
MsgOpenNewTabForMessage();
});
/*liberator.mappings.add([liberator.modes.NORMAL],
["o"], "Open a message",
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
liberator.mappings.add(modes, ["<Space>"],
"Scroll message or select next unread one",
function () { return true; },
+7 -13
View File
@@ -95,11 +95,14 @@ liberator.config = {
init: function ()
{
/*liberator.mappings.add([liberator.modes.NORMAL],
["o"], "Open a message",
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
// don't wait too long when selecting new messages
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
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],
["e"], "Edit message",
function () { liberator.editor.editWithExternalEditor(); });
@@ -124,15 +127,6 @@ liberator.config = {
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";
// load Muttator specific modules
if (this.isComposeWindow)
{
}
else
{