From aa9d7cd7abb1c1bb2afab376194614ef0c5c9b6e Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 6 Jul 2019 14:21:41 +0200 Subject: Bind F12 to opening Web Inspector --- badwolf.1 | 2 ++ badwolf.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/badwolf.1 b/badwolf.1 index d2014a2..8f13795 100644 --- a/badwolf.1 +++ b/badwolf.1 @@ -38,6 +38,8 @@ Focuses on the location(URL) entry Reloads the current tab (with/without clearing cache) .It browser F7 Toggles caret browsing. +.It browser F12 +Opens the web inspector. .It browser C-[ / C-] Go back/forward in current tab’s history .It any A-Left / A-Right diff --git a/badwolf.c b/badwolf.c index 8b4f289..5ea0e5b 100644 --- a/badwolf.c +++ b/badwolf.c @@ -248,6 +248,9 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client * { case GDK_KEY_F5: webkit_web_view_reload(browser->webView); return TRUE; case GDK_KEY_F7: toggle_caret_browsing(browser->webView); return TRUE; + case GDK_KEY_F12: + webkit_web_inspector_show(webkit_web_view_get_inspector(browser->webView)); + return TRUE; } } else -- cgit v1.3.1-23-gd82d