[hackers] [surf] Adding back the Escape to stop loading the current page. Thanks Daniel Bainton || Christoph Lohmann
changeset: 267:3e0f59a4ba02
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Nov 16 10:42:30 2012 +0100
files: README config.def.h config.mk surf.1
description:
Adding back the Escape to stop loading the current page. Thanks Daniel Bainton
for the notice!
diff -r 1d778c00709f -r 3e0f59a4ba02 README
--- a/README Fri Nov 16 10:31:42 2012 +0100
+++ b/README Fri Nov 16 10:42:30 2012 +0100
_AT_@ -2,7 +2,6 @@
==================================
surf is a simple Web browser based on WebKit/GTK+.
-
Requirements
------------
In order to build surf you need GTK+ and Webkit/GTK+ header files.
_AT_@ -23,3 +22,4 @@
------------
run
surf [URL]
+
diff -r 1d778c00709f -r 3e0f59a4ba02 config.def.h
--- a/config.def.h Fri Nov 16 10:31:42 2012 +0100
+++ b/config.def.h Fri Nov 16 10:42:30 2012 +0100
_AT_@ -45,6 +45,7 @@
{ MODKEY, GDK_space, scroll_v, { .i = +10000 } },
{ MODKEY, GDK_i, scroll_h, { .i = +1 } },
{ MODKEY, GDK_u, scroll_h, { .i = -1 } },
+ { 0, GDK_Escape, stop, { 0 } },
{ MODKEY, GDK_o, source, { 0 } },
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
{ MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
diff -r 1d778c00709f -r 3e0f59a4ba02 config.mk
--- a/config.mk Fri Nov 16 10:31:42 2012 +0100
+++ b/config.mk Fri Nov 16 10:42:30 2012 +0100
_AT_@ -20,7 +20,7 @@
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS = -g -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -g ${LIBS}
# Solaris
diff -r 1d778c00709f -r 3e0f59a4ba02 surf.1
--- a/surf.1 Fri Nov 16 10:31:42 2012 +0100
+++ b/surf.1 Fri Nov 16 10:42:30 2012 +0100
_AT_@ -109,6 +109,9 @@
.B Ctrl\-p
Loads URI from primary selection.
.TP
+.B Esc
+Stop loading the page.
+.TP
.B Ctrl\-Shift\-p
Calls Printpage Dialog.
.TP
Received on Fri Nov 16 2012 - 10:44:33 CET
This archive was generated by hypermail 2.3.0
: Fri Nov 16 2012 - 10:48:06 CET