logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: 67d213f3f64bceb6eab39445ccaff4fa18666c77
parent 5b578e0c0386ec6b9a4fb6d5b3ae8f7f161f99a9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  3 Dec 2023 02:19:40 +0100

keybindings: Add Ctrl-Escape to terminate web-process

Diffstat:

Mbadwolf.12++
Mkeybindings.c5++++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/badwolf.1 b/badwolf.1 @@ -41,6 +41,8 @@ Focuses on the location(URL) entry Reloads the content in the current tab (with/without clearing cache) .It browser Escape Stops loading the content in the current tab +.It browser Ctrl-Escape +Terminates the web process .It browser F7 Toggles caret browsing. .It browser F12 diff --git a/keybindings.c b/keybindings.c @@ -1,5 +1,5 @@ // BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser -// SPDX-FileCopyrightText: 2019-2022 Badwolf Authors <https://hacktivis.me/projects/badwolf> +// SPDX-FileCopyrightText: 2019-2023 Badwolf Authors <https://hacktivis.me/projects/badwolf> // SPDX-License-Identifier: BSD-3-Clause #include "keybindings.h" @@ -84,6 +84,9 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client * { switch(((GdkEventKey *)event)->keyval) { + case GDK_KEY_Escape: + webkit_web_view_terminate_web_process(browser->webView); + return TRUE; case GDK_KEY_F4: webkit_web_view_try_close(browser->webView); return TRUE;