commit: f886434a448d0bf873f68dec6da4449b93591582
parent: 903627d8cabb0dc3dd13f6ff44df8cd901279e6c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 26 Jun 2019 20:21:04 +0200
badwolf.c: Add Alt-d keybind
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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;