Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--badwolf.c6
diff --git a/badwolf.c b/badwolf.c
index e910838..bcd7e98 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -215,6 +215,12 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client *
if((((GdkEventKey *)event)->state & GDK_MOD1_MASK))
{
+ if((browser != NULL) && (((GdkEventKey *)event)->keyval == GDK_KEY_d))
+ {
+ webkit_web_view_try_close(browser->webView);
+ return TRUE;
+ }
+
switch(((GdkEventKey *)event)->keyval)
{
case GDK_KEY_Left: gtk_notebook_prev_page(notebook); return TRUE;