Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit1e28a08d0d719fae0797a184372937400f7926ee (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-11 03:53:00 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-11 03:53:00 +0200
Filese9b40cd4920c3206be38ef67d31be8d0df03e155
goodwolf-1e28a08d0d719fae0797a184372937400f7926ee.tar
goodwolf-1e28a08d0d719fae0797a184372937400f7926ee.tar.gz
goodwolf-1e28a08d0d719fae0797a184372937400f7926ee.zip
Parent5ab0fb26069bba04612cb7b99baf6d47ea56b29d (diff)
keybindings: Esc stops loading
2 files changed, 4 insertions, 1 deletions
-rw-r--r--badwolf.14
-rw-r--r--keybindings.c1
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));