mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 13:15:46 +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:
@@ -87,9 +87,9 @@ const configbase = { //{{{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {object} A map between key names for key events should be ignored,
|
* @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.
|
* @property {[[]]} An array of application specific mode specifications.
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ const liberator = (function () //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return the platform normalised to Vim values
|
// return the platform normalized to Vim values
|
||||||
function getPlatformFeature()
|
function getPlatformFeature()
|
||||||
{
|
{
|
||||||
let platform = navigator.platform;
|
let platform = navigator.platform;
|
||||||
|
|||||||
@@ -126,6 +126,16 @@ const config = { //{{{
|
|||||||
"various.html"
|
"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: [
|
modes: [
|
||||||
["MESSAGE", { char: "m" }],
|
["MESSAGE", { char: "m" }],
|
||||||
["COMPOSE"]
|
["COMPOSE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user