summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-11-05 23:04:32 +0100
committerKarel Kočí <cynerd@email.cz>2018-11-05 23:04:32 +0100
commitd7f641d5dd6c099d4a9274a18fcfb89df00d4b4c (patch)
treefa46c7ec3902a9549393df154f24b25ef7517875 /config.h
parent78d9d66ad6ce6455690670173623ad420d12170d (diff)
parent2b71a22755bae132a639fe10475a0d42e582d244 (diff)
downloadsurf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.gz
surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.bz2
surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.zip
Merge branch 'surf-webkit2' into mysurfv2.0.7
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/config.h b/config.h
index a14fb4b..b7077cb 100644
--- a/config.h
+++ b/config.h
@@ -147,15 +147,13 @@ static Key keys[] = {
{ MODKEY, GDK_KEY_l, navigate, { .i = +1 } },
{ MODKEY, GDK_KEY_h, navigate, { .i = -1 } },
- /* Currently we have to use scrolling steps that WebKit2GTK+ gives us
- * d: step down, u: step up, r: step right, l:step left
- * D: page down, U: page up */
- { MODKEY, GDK_KEY_j, scroll, { .i = 'd' } },
- { MODKEY, GDK_KEY_k, scroll, { .i = 'u' } },
- { MODKEY, GDK_KEY_b, scroll, { .i = 'U' } },
- { MODKEY, GDK_KEY_space, scroll, { .i = 'D' } },
- { MODKEY, GDK_KEY_i, scroll, { .i = 'r' } },
- { MODKEY, GDK_KEY_u, scroll, { .i = 'l' } },
+ /* vertical and horizontal scrolling, in viewport percentage */
+ { MODKEY, GDK_KEY_j, scrollv, { .i = +10 } },
+ { MODKEY, GDK_KEY_k, scrollv, { .i = -10 } },
+ { MODKEY, GDK_KEY_b, scrollv, { .i = +50 } },
+ { MODKEY, GDK_KEY_space, scrollv, { .i = -50 } },
+ { MODKEY, GDK_KEY_i, scrollh, { .i = +10 } },
+ { MODKEY, GDK_KEY_u, scrollh, { .i = -10 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_j, zoom, { .i = -1 } },