From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 5 Aug 2013 21:54:40 +0000 (+0200)
Subject: Remove unneeded focus switching in inputbox_activate_cb.
X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=ff889cdf6d4159b9dfc0c2c639d58f7517da0f68;p=vimb.git

Remove unneeded focus switching in inputbox_activate_cb.

I don't know why I've added this, but at the moment I can't find any reason or
use case where this might be required. Instead this make the ':input' command
called from inputbox hard to use, because the focus is removed from inputbox.
---

diff --git a/src/main.c b/src/main.c
index 5732823..09ba47c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -502,8 +502,6 @@ static void inputbox_activate_cb(GtkEntry *entry)
         return;
     }
 
-    gtk_widget_grab_focus(GTK_WIDGET(vb.gui.webview));
-
     /* do not free or modify text */
     text = GET_TEXT();