mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 02:21:26 +02:00
some small code cleanup
This commit is contained in:
@@ -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
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user