From 3ff2cccc374830a96daed6b025d8d61f197eaf27 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 6 Sep 2007 12:32:07 +0000 Subject: [PATCH] experimental attempt to keep you in command mode after loading pages --- NEWS | 1 + chrome/content/vimperator/events.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 1b701e29..3b0c63e1 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
 2007-xx-xx:
 	* version 0.6
+	* vimperator trys to stay in command mode after loading pages instead of having a text field focused
 	* added a visual bell and replaced 'beep' with 'visualbell'
 	* added vimperator logo (can be seen in the addons manager)
 	* added 'hlsearch','incsearch', 'ignorecase' and 'smartcase' options
diff --git a/chrome/content/vimperator/events.js b/chrome/content/vimperator/events.js
index ac15ae5b..62ab73e6 100644
--- a/chrome/content/vimperator/events.js
+++ b/chrome/content/vimperator/events.js
@@ -230,9 +230,9 @@ function Events() //{{{
             // code which is only relevant if the page load is the current tab goes here:
             if (doc == getBrowser().selectedBrowser.contentDocument)
             {
-                /* none yet */
-                //vimperator.statusline.updateUrl();
-                //logMessage("onpageLoad");
+                // we want to stay in command mode after a page has loaded
+                // TODO: remember the last focused input widget, so we can go there with 'gi'
+                setTimeout(vimperator.focusContent, 10);
             }
         }
     }