about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorTroels Henriksen <athas@sigkill.dk>2012-05-31 11:46:24 +0200
committerTroels Henriksen <athas@sigkill.dk>2012-05-31 11:46:24 +0200
commit3083ef4031aaf48926497397295b0db639a6a9c1 (patch)
treefcb32c2546910c24ed27fd2f19037ec1326ea1db /config.def.h
parentManpage patch from Evan Gates. (diff)
downloadsurf-3083ef4031aaf48926497397295b0db639a6a9c1.tar.gz
surf-3083ef4031aaf48926497397295b0db639a6a9c1.tar.bz2
surf-3083ef4031aaf48926497397295b0db639a6a9c1.zip
Keybindings for scrolling left and right; code by stanio.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 9917b76..e03b13d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -34,8 +34,14 @@ static Key keys[] = {
     { MODKEY|GDK_SHIFT_MASK,GDK_i,      zoom,       { .i = 0  } },
     { MODKEY,               GDK_l,      navigate,   { .i = +1 } },
     { MODKEY,               GDK_h,      navigate,   { .i = -1 } },
-    { MODKEY,               GDK_j,      scroll,     { .i = +1 } },
-    { MODKEY,               GDK_k,      scroll,     { .i = -1 } },
+    { MODKEY,               GDK_j,           scroll_v,   { .i = +1 } },
+    { MODKEY,               GDK_k,           scroll_v,   { .i = -1 } },
+    { MODKEY,               GDK_g,           scroll_v,   { .i = -20000 } },
+    { MODKEY|GDK_SHIFT_MASK,GDK_g,           scroll_v,   { .i = +20000 } },
+    { MODKEY,               GDK_b,           scroll_v,   { .i = -10000 } },
+    { MODKEY,               GDK_space,       scroll_v,   { .i = +10000 } },
+    { MODKEY,               GDK_l,           scroll_h,   { .i = +1 } },
+    { MODKEY,               GDK_h,           scroll_h,   { .i = -1 } },
     { 0,                    GDK_Escape, stop,       { 0 } },
     { MODKEY,               GDK_o,      source,     { 0 } },
     { MODKEY,               GDK_g,      spawn,      SETPROP("_SURF_URI", "_SURF_GO") },