1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 11:15:46 +01:00

fixed :map x :<cr> problem

This commit is contained in:
Martin Stubenschrott
2007-08-16 16:54:08 +00:00
parent e4166b3c76
commit 1e4ffc635c
2 changed files with 4 additions and 3 deletions

View File

@@ -310,8 +310,10 @@ function CommandLine() //{{{
if (event.type == "blur")
{
// prevent losing focus, there should be a better way, but it just didn't work otherwise
if (vimperator.hasMode(vimperator.modes.COMMAND_LINE))
setTimeout(function() { command_widget.inputField.focus(); }, 0);
setTimeout(function() {
if (vimperator.hasMode(vimperator.modes.COMMAND_LINE))
command_widget.inputField.focus();
}, 0);
}
else if (event.type == "focus")
{