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:
@@ -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 <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()
|
||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["<Esc>", "<C-[>"],
|
||||
vimperator.events.onEscape,
|
||||
|
||||
Reference in New Issue
Block a user