From 9fa6b8e6246ff02022e73bb3f0c59a4c9ed8fb99 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Fri, 29 May 2009 13:07:17 +0200 Subject: [PATCH] Fix space/return etc. for muttator. Unfortunatly config{base}.ignoreKeys can't really be used for this, so we have to duplicate it for all apps. --- common/content/configbase.js | 4 ++-- common/content/liberator.js | 2 +- muttator/content/config.js | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/common/content/configbase.js b/common/content/configbase.js index 4b042457..dd0f9b65 100644 --- a/common/content/configbase.js +++ b/common/content/configbase.js @@ -87,9 +87,9 @@ const configbase = { //{{{ /** * @property {object} A map between key names for key events should be ignored, - * and a mask of the modes in which they shoule be ignored. + * and a mask of the modes in which they should be ignored. */ - ignoreKeys: {}, + ignoreKeys: {}, // XXX: be aware you can't put useful values in here, as "modes.NORMAL" etc. are not defined at this time /** * @property {[[]]} An array of application specific mode specifications. diff --git a/common/content/liberator.js b/common/content/liberator.js index 2b90db68..21eeff96 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -561,7 +561,7 @@ const liberator = (function () //{{{ } } - // return the platform normalised to Vim values + // return the platform normalized to Vim values function getPlatformFeature() { let platform = navigator.platform; diff --git a/muttator/content/config.js b/muttator/content/config.js index 75c8e502..12100524 100644 --- a/muttator/content/config.js +++ b/muttator/content/config.js @@ -126,6 +126,16 @@ const config = { //{{{ "various.html" ],*/ + get ignoreKeys() { + delete this.ignoreKeys; + return this.ignoreKeys = { + "": modes.NORMAL | modes.INSERT, + "": modes.NORMAL | modes.INSERT, + "": modes.NORMAL | modes.INSERT, + "": modes.NORMAL | modes.INSERT, + } + }, + modes: [ ["MESSAGE", { char: "m" }], ["COMPOSE"]