1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 20:45:45 +01:00

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.
This commit is contained in:
Martin Stubenschrott
2009-05-29 13:07:17 +02:00
parent 5831b652f9
commit 9fa6b8e624
3 changed files with 13 additions and 3 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -126,6 +126,16 @@ const config = { //{{{
"various.html"
],*/
get ignoreKeys() {
delete this.ignoreKeys;
return this.ignoreKeys = {
"<Return>": modes.NORMAL | modes.INSERT,
"<Space>": modes.NORMAL | modes.INSERT,
"<Up>": modes.NORMAL | modes.INSERT,
"<Down>": modes.NORMAL | modes.INSERT,
}
},
modes: [
["MESSAGE", { char: "m" }],
["COMPOSE"]