]> Skullheadx's Git Forge - surf.git/commitdiff
Use Ctrl-t for showcert instead of Ctrl-x
authorIvan Tham <pickfire@riseup.net>
Tue, 2 May 2017 15:10:32 +0000 (23:10 +0800)
committerQuentin Rameau <quinq@fifth.space>
Tue, 2 May 2017 15:20:11 +0000 (17:20 +0200)
config.def.h
surf.1
surf.c

index 57cef76ec00a65b3249f9828fc70061315104419..5fb79deacc230c404ce35337fa880b4e4e32952d 100644 (file)
@@ -152,7 +152,7 @@ static Key keys[] = {
        { MODKEY|GDK_SHIFT_MASK, GDK_KEY_n,      find,       { .i = -1 } },
 
        { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p,      print,      { 0 } },
-       { MODKEY,                GDK_KEY_x,      showcert,   { 0 } },
+       { MODKEY,                GDK_KEY_t,      showcert,   { 0 } },
 
        { MODKEY|GDK_SHIFT_MASK, GDK_KEY_a,      togglecookiepolicy, { 0 } },
        { 0,                     GDK_KEY_F11,    togglefullscreen, { 0 } },
diff --git a/surf.1 b/surf.1
index 5e04dc5d9e26dfbfc0b87381390b57964c579b96..711a9aaa4d113d3faf08df7afaa63ab3630e3208 100644 (file)
--- a/surf.1
+++ b/surf.1
@@ -200,7 +200,7 @@ Reloads the website without using the cache.
 .B Ctrl\-y
 Copies current URI to primary selection.
 .TP
-.B Ctrl\-Shift\-x
+.B Ctrl\-t
 Display the current TLS certificate in a popup window.
 .TP
 .B Ctrl\-Shift\-a
diff --git a/surf.c b/surf.c
index 8ecf0f52e113628862e00debb4cc7eeee961812b..007f7b902af4851371763cbfe7c6e85ab8514f08 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -1332,7 +1332,7 @@ loadfailedtls(WebKitWebView *v, gchar *uri, GTlsCertificate *cert,
        g_object_get(cert, "certificate-pem", &pem, NULL);
        html = g_strdup_printf("<p>Could not validate TLS for ā€œ%sā€<br>%s</p>"
                               "<p>You can inspect the following certificate "
-                              "with Ctrl+Shift+x (default keybinding).</p>"
+                              "with Ctrl-t (default keybinding).</p>"
                               "<p><pre>%s</pre></p>", uri, errmsg->str, pem);
        g_free(pem);
        g_string_free(errmsg, TRUE);