Don't check for keypresses on the inspector pane.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 23 Mar 2013 00:09:30 +0000 (01:09 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 23 Mar 2013 00:09:30 +0000 (01:09 +0100)
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.

src/keybind.c

index 2067b28..b48e1d3 100644 (file)
@@ -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)