1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:17:59 +01:00

small fixes to the input handling

This commit is contained in:
Martin Stubenschrott
2007-06-08 00:06:52 +00:00
parent 5aa89672c9
commit e0f47f8dac

View File

@@ -917,9 +917,13 @@ function Vimperator()
if (vimperator.input.pendingMap) if (vimperator.input.pendingMap)
{ {
vimperator.input.pendingMap.execute(null, vimperator.input.count, key); if (key != "<Esc>" && key != "<C-[>")
vimperator.input.pendingMap.execute(null, vimperator.input.count, key);
vimperator.input.pendingMap = null; vimperator.input.pendingMap = null;
vimperator.input.buffer = ""; vimperator.input.buffer = "";
event.preventDefault();
event.stopPropagation();
} }
else if (map = vimperator.mappings.get(vimperator.modes.NORMAL, candidate_command)) else if (map = vimperator.mappings.get(vimperator.modes.NORMAL, candidate_command))
{ {