diff options
keybindings: Esc stops loading
2 files changed, 4 insertions, 1 deletions
| -rw-r--r-- | badwolf.1 | 4 | ||||
| -rw-r--r-- | keybindings.c | 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)); |