summaryrefslogtreecommitdiff
path: root/muttator
diff options
context:
space:
mode:
Diffstat (limited to 'muttator')
-rw-r--r--muttator/content/config.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/muttator/content/config.js b/muttator/content/config.js
index 3b6ee2a2..27cc400c 100644
--- a/muttator/content/config.js
+++ b/muttator/content/config.js
@@ -102,6 +102,17 @@ const config = { //{{{
function () { buffer.viewSelectionSource(); }]*/
],
+ focusChange: function(win) {
+ // we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus
+ if (hasHTMLDocument(win) || elem instanceof HTMLAnchorElement)
+ {
+ if (config.isComposeWindow)
+ modes.set(modes.INSERT, modes.TEXTAREA);
+ else if (liberator.mode != modes.MESSAGE)
+ liberator.mode = modes.MESSAGE;
+ }
+ },
+
// they are sorted by relevance, not alphabetically
helpFiles: ["intro.html", "version.html"],
/* "tutorial.html", "starting.html",
@@ -111,6 +122,10 @@ const config = { //{{{
"various.html"
],*/
+ optionDefaults: {
+ stal: 2,
+ },
+
scripts: [
"addressbook.js",
"mail.js",