From: Daniel Carl Date: Mon, 8 Apr 2013 20:12:48 +0000 (+0200) Subject: Fixed no input leafing on some sites. X-Git-Url: https://git.owens.tech/assets/me.jpg/assets/me.jpg/git?a=commitdiff_plain;h=90ebdb5e94eab523828001dcac8c34f19a071604;p=vimb.git 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. --- 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); }