1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 16:14:13 +01:00

added <Nop> support

This commit is contained in:
Martin Stubenschrott
2007-07-27 10:24:48 +00:00
parent 331cf1fc52
commit ae840402f1

View File

@@ -859,6 +859,14 @@ function Mappings() //{{{
help: "Stops loading the current web page."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<Nop>"],
function() { return; },
{
short_help: "Do nothing",
help: "This command is useful for disabling a specific mapping. " +
"<code class=\"command\">:map &lt;C-n&gt; &lt;Nop&gt;</code> will prevent <code class=\"mapping\">&lt;C-n&gt;</code> from doing anything."
}
));
// if you ever add/remove keys here, also check them in the vimperator.events.onKeyPress()
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<Esc>", "<C-[>"],
vimperator.events.onEscape,