mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-12 11:33:33 +02:00
added <Nop> support
This commit is contained in:
@@ -859,6 +859,14 @@ function Mappings() //{{{
|
|||||||
help: "Stops loading the current web page."
|
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 <C-n> <Nop></code> will prevent <code class=\"mapping\"><C-n></code> from doing anything."
|
||||||
|
}
|
||||||
|
));
|
||||||
// if you ever add/remove keys here, also check them in the vimperator.events.onKeyPress()
|
// if you ever add/remove keys here, also check them in the vimperator.events.onKeyPress()
|
||||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<Esc>", "<C-[>"],
|
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<Esc>", "<C-[>"],
|
||||||
vimperator.events.onEscape,
|
vimperator.events.onEscape,
|
||||||
|
|||||||
Reference in New Issue
Block a user