1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:52:29 +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

2
NEWS
View File

@@ -1,6 +1,8 @@
<pre> <pre>
2008-06-xx: 2008-06-xx:
* version 1.2 * version 1.2
* IMPORTANT: removed old :buffers! buffer window, as it was ugly and slightly broken
use "B" or :buffers instead
* :bdelete accepts an optional argument now * :bdelete accepts an optional argument now
* renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit * renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
* don't pass any ctrl- or alt- prefixed keys to firefox in insert mode * don't pass any ctrl- or alt- prefixed keys to firefox in insert mode

View File

@@ -180,8 +180,22 @@ liberator.Buffer = function () //{{{
"Show current website with a minimal style sheet to make it easily accessible", "Show current website with a minimal style sheet to make it easily accessible",
"boolean", false, "boolean", false,
{ {
setter: function (value) { getMarkupDocumentViewer().authorStyleDisabled = value; }, setter: function (value)
getter: function () { return getMarkupDocumentViewer().authorStyleDisabled; }, {
try
{
getMarkupDocumentViewer().authorStyleDisabled = value;
}
catch (e) { }
},
getter: function ()
{
try
{
return getMarkupDocumentViewer().authorStyleDisabled;
}
catch (e) { }
}
}); });
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}

View File

@@ -1338,7 +1338,9 @@ liberator.Events = function () //{{{
liberator.commandline.onEvent(event); // reroute event in command line mode liberator.commandline.onEvent(event); // reroute event in command line mode
} }
else if (liberator.mode != liberator.modes.INSERT && liberator.mode != liberator.modes.TEXTAREA) else if (liberator.mode != liberator.modes.INSERT && liberator.mode != liberator.modes.TEXTAREA)
{
liberator.beep(); liberator.beep();
}
} }
} }

View File

@@ -94,11 +94,11 @@ liberator.config = {
init: function () init: function ()
{ {
liberator.mappings.add([liberator.modes.NORMAL], /*liberator.mappings.add([liberator.modes.NORMAL],
["o"], "Open a message", ["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], liberator.mappings.add([liberator.modes.COMPOSE],
["e"], "Edit message", ["e"], "Edit message",
function () { liberator.editor.editWithExternalEditor(); }); function () { liberator.editor.editWithExternalEditor(); });
@@ -111,6 +111,19 @@ liberator.config = {
["Y"], "Send message later", ["Y"], "Send message later",
function () { goDoCommand("cmd_sendLater"); }); 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 // don't wait too long when selecting new messages
// GetThreadTree()._selectDelay = 300; // TODO: make configurable // GetThreadTree()._selectDelay = 300; // TODO: make configurable
this.isComposeWindow = window.wintype == "msgcompose"; this.isComposeWindow = window.wintype == "msgcompose";