mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
small fixes to the input handling
This commit is contained in:
@@ -917,9 +917,13 @@ function Vimperator()
|
|||||||
|
|
||||||
if (vimperator.input.pendingMap)
|
if (vimperator.input.pendingMap)
|
||||||
{
|
{
|
||||||
|
if (key != "<Esc>" && key != "<C-[>")
|
||||||
vimperator.input.pendingMap.execute(null, vimperator.input.count, key);
|
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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user