logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 1e28a08d0d719fae0797a184372937400f7926ee
parent: 5ab0fb26069bba04612cb7b99baf6d47ea56b29d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 11 May 2020 03:53:00 +0200

keybindings: Esc stops loading

Diffstat:

Mbadwolf.14+++-
Mkeybindings.c1+
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/badwolf.1 b/badwolf.1 @@ -35,7 +35,9 @@ Focuses on the search entry .It browser C-l Focuses on the location(URL) entry .It browser C-S-r / C-r, browser F5 -Reloads the current tab (with/without clearing cache) +Reloads the content in the current tab (with/without clearing cache) +.It browser Escape +Stops loading the content in the current tab .It browser F7 Toggles caret browsing. .It browser F12 diff --git a/keybindings.c b/keybindings.c @@ -136,6 +136,7 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client * switch(((GdkEventKey *)event)->keyval) { case GDK_KEY_F5: webkit_web_view_reload(browser->webView); return TRUE; + case GDK_KEY_Escape: webkit_web_view_stop_loading(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));