1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:57:58 +01:00

reset mode on begin document load, this should fix the annoying -- INSERT -- problem

This commit is contained in:
Martin Stubenschrott
2007-12-12 04:23:42 +00:00
parent e7aa6020a8
commit b26634f34a
2 changed files with 16 additions and 9 deletions

View File

@@ -775,9 +775,11 @@ vimperator.Events = function () //{{{
Components.interfaces.nsIWebProgressListener.STATE_IS_WINDOW))
{
// This fires when the load event is initiated
// only thrown for the current tab, not when another tab changes
if (flags & Components.interfaces.nsIWebProgressListener.STATE_START)
{
vimperator.statusline.updateProgress(0);
vimperator.modes.reset(false);
}
else if (flags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
;// vimperator.statusline.updateUrl();