summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-10-16 15:35:11 +0200
committerEnno Boland (tox) <tox@s01.de>2009-10-16 15:35:11 +0200
commitb298d889de769086e06b7bc71188ea7e4e38f259 (patch)
tree722bc66482b3fd6a847ee2aadf7d89251b3f739f /config.def.h
parente3690dffed6b6ebd09f53d70d05af6c8504aa0f1 (diff)
downloadsurf-b298d889de769086e06b7bc71188ea7e4e38f259.tar.gz
surf-b298d889de769086e06b7bc71188ea7e4e38f259.tar.bz2
surf-b298d889de769086e06b7bc71188ea7e4e38f259.zip
implementing user defined context menu
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h
index a01f882..002c901 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,10 +11,10 @@ static Key keys[] = {
/* modifier keyval function arg Focus */
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE }, Any },
{ MODKEY, GDK_r, reload, { .b = FALSE }, Any },
- { MODKEY, GDK_g, showurl, { 0 }, Any },
+ { MODKEY, GDK_g, showuri, { 0 }, Any },
{ MODKEY, GDK_slash, showsearch, { 0 }, Any },
{ 0, GDK_Escape, hidesearch, { 0 }, Any },
- { 0, GDK_Escape, hideurl, { 0 }, Any },
+ { 0, GDK_Escape, hideuri, { 0 }, Any },
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 }, Any },
{ MODKEY, GDK_p, clipboard, { .b = TRUE }, Browser },
{ MODKEY, GDK_y, clipboard, { .b = FALSE }, Browser },
@@ -31,13 +31,15 @@ static Key keys[] = {
{ MODKEY|GDK_SHIFT_MASK,GDK_n, searchtext, { .b = FALSE }, Browser|SearchBar },
{ 0, GDK_Return, searchtext, { .b = TRUE }, SearchBar },
{ GDK_SHIFT_MASK, GDK_Return, searchtext, { .b = FALSE }, SearchBar },
- { 0, GDK_Return, loaduri, { .v = NULL }, UrlBar },
- { 0, GDK_Return, hideurl, { 0 }, UrlBar },
+ { 0, GDK_Return, loaduri, { .v = NULL }, UriBar },
+ { 0, GDK_Return, hideuri, { 0 }, UriBar },
};
-static Context context[] = {
- { "<===", navigate, { .i = -1 } }
- { "===>", navigate, { .i = -1 } }
- { "Stop", navigate, { .i = -1 } }
- { "Open", navigate, { .i = -1 } }
+static Item items[] = {
+ { "Open", loaduri, { .v = NULL } },
+ { "New Window", newwindow, { .v = NULL } },
+ { "Stop", stop, { 0 } },
+ { "<===", navigate, { .i = -1 } },
+ { "===>", navigate, { .i = +1 } },
+ { "suckless", newwindow, { .v = (char *)"http://suckless.org" } },
};