s/<normal>/<leave>/
This commit is contained in:
parent
d2dc0b7ac5
commit
0c15517352
@ -84,7 +84,7 @@ SECTION_DESC = {
|
||||
"supported in this mode.\n"
|
||||
"In addition to the normal commands, the following special commands "
|
||||
"are defined:\n"
|
||||
" <normal>: Switch back to normal mode."),
|
||||
" <leave>: Leave the insert mode."),
|
||||
'aliases': (
|
||||
"Aliases for commands.\n"
|
||||
"By default, no aliases are defined. Example which adds a new command "
|
||||
@ -428,9 +428,9 @@ DATA = OrderedDict([
|
||||
)),
|
||||
|
||||
('keybind.insert', sect.ValueList(
|
||||
types.KeyBindingName(), types.KeyBinding(['<normal>']),
|
||||
('<Escape>', '<normal>'),
|
||||
('<Ctrl-C>', '<normal>'),
|
||||
types.KeyBindingName(), types.KeyBinding(['<leave>']),
|
||||
('<Escape>', '<leave>'),
|
||||
('<Ctrl-C>', '<leave>'),
|
||||
)),
|
||||
|
||||
('aliases', sect.ValueList(
|
||||
|
@ -33,5 +33,5 @@ class InsertKeyParser(KeyParser):
|
||||
|
||||
def execute(self, cmdstr, count=None):
|
||||
"""Handle a completed keychain."""
|
||||
if cmdstr == '<normal>':
|
||||
if cmdstr == '<leave>':
|
||||
modes.leave("insert")
|
||||
|
Loading…
Reference in New Issue
Block a user