From 1e28a08d0d719fae0797a184372937400f7926ee Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 11 May 2020 03:53:00 +0200 Subject: keybindings: Esc stops loading --- badwolf.1 | 4 +++- keybindings.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/badwolf.1 b/badwolf.1 index 622faff..a72215e 100644 --- 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 index b6806f3..51aac26 100644 --- 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)); -- cgit v1.3.1-23-gd82d