From 90ebdb5e94eab523828001dcac8c34f19a071604 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 8 Apr 2013 22:12:48 +0200
Subject: [PATCH] Fixed no input leafing on some sites.

On some pages like http://dict.leo.org/?search=programming the input mode
could be leafed, but all further typed chars where still written into the
input form field. This makes the browser unusable if such a page was opened.

Now we observe the webview and input box to also catch the types chars away,
if vimb browser is not in insert mode.

The key events are not observed for the whole window to not apply our
keybindings to the webinspector too, that will break the usability of the
webinspector.
---
 src/keybind.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/keybind.c b/src/keybind.c
index 984b04d..91f5a62 100644
--- a/src/keybind.c
+++ b/src/keybind.c
@@ -39,6 +39,7 @@ static void free_keybind(Keybind *keybind);
 void keybind_init(void)
 {
     modkeys = g_string_new("");
+    g_signal_connect(G_OBJECT(vb.gui.webview), "key-press-event", G_CALLBACK(keypress_cb), NULL);
     g_signal_connect(G_OBJECT(vb.gui.box), "key-press-event", G_CALLBACK(keypress_cb), NULL);
 }
 
-- 
2.20.1