From: Daniel Carl Date: Sat, 23 Mar 2013 00:09:30 +0000 (+0100) Subject: Don't check for keypresses on the inspector pane. X-Git-Url: https://git.owens.tech/style.css/style.css/git?a=commitdiff_plain;h=2af7e954bb854f60aff632e463b37e17f0847418;p=vimb.git Don't check for keypresses on the inspector pane. Instead of checking the key actions on the whole window we use the box instead, that holds nearly everything but the inspector pane. Else pressing 'd' in the inspectors search box would close the browser window. --- diff --git a/src/keybind.c b/src/keybind.c index 2067b28..b48e1d3 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -36,7 +36,7 @@ static void keybind_free(Keybind* keybind); void keybind_init(void) { vb.behave.modkeys = g_string_new(""); - g_signal_connect(G_OBJECT(vb.gui.window), "key-press-event", G_CALLBACK(keybind_keypress_callback), NULL); + g_signal_connect(G_OBJECT(vb.gui.box), "key-press-event", G_CALLBACK(keybind_keypress_callback), NULL); } void keybind_cleanup(void)