changeset 1468:7fc6e6dca086

focus main on enter submitted by furaisanjin <furaisanjin@gmail.com>
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 17 Dec 2009 21:38:38 +0100
parents c38e7c577023
children 13307136be94 6ed936726b50
files src/uicmd.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/uicmd.cc	Thu Dec 10 21:50:17 2009 +0000
+++ b/src/uicmd.cc	Thu Dec 17 21:38:38 2009 +0100
@@ -602,7 +602,7 @@
       dFree(new_urlstr);
 
       if (url) {
-         a_Nav_push(bw, url);
+         a_UIcmd_open_url(bw, url);
          a_Url_free(url);
       }
    }
@@ -617,6 +617,7 @@
 void a_UIcmd_open_url(BrowserWindow *bw, const DilloUrl *url)
 {
    a_Nav_push(bw, url);
+   a_UIcmd_focus_main_area(bw);
 }
 
 static void UIcmd_open_url_nbw(BrowserWindow *new_bw, const DilloUrl *url)