1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:42:28 +01:00

[muttator] some new compose mappings

This commit is contained in:
Martin Stubenschrott
2008-06-08 23:48:33 +00:00
parent 460e56acaf
commit ec91920bb8
4 changed files with 36 additions and 5 deletions

View File

@@ -94,11 +94,11 @@ liberator.config = {
init: function ()
{
liberator.mappings.add([liberator.modes.NORMAL],
/*liberator.mappings.add([liberator.modes.NORMAL],
["o"], "Open a message",
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
// TODO: move elsewhere
// TODO: move elsewhere, probably compose.js
liberator.mappings.add([liberator.modes.COMPOSE],
["e"], "Edit message",
function () { liberator.editor.editWithExternalEditor(); });
@@ -111,6 +111,19 @@ liberator.config = {
["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";