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

start of a caret mode

This commit is contained in:
Martin Stubenschrott
2007-09-06 14:24:18 +00:00
parent 3ff2cccc37
commit 5f6958521e
5 changed files with 63 additions and 6 deletions

View File

@@ -309,6 +309,18 @@ function Mappings() //{{{
help: "In command line mode, you can perform extended commands, which may require arguments."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["i"],
function()
{
Options.setFirefoxPref("accessibility.browsewithcaret", true);
vimperator.setMode(vimperator.modes.CARET, null);
},
{
short_help: "Start caret mode",
help: "This mode resembles the vim normal mode where you see a text cursor and can move around. " +
"NOTE: Movement keys are not really working for the moment."
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["I"],
function() { vimperator.addMode(null, vimperator.modes.ESCAPE_ALL_KEYS); },
{