logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: aa9d7cd7abb1c1bb2afab376194614ef0c5c9b6e
parent: b34cb3f31431722d7fbccc8bf6a37d36580b4c14
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  6 Jul 2019 14:21:41 +0200

Bind F12 to opening Web Inspector

Diffstat:

Mbadwolf.12++
Mbadwolf.c3+++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git 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 @@ -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