summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-12-07 15:50:00 +0100
committerQuentin Rameau <quinq@fifth.space>2018-10-08 11:38:03 +0200
commit7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b (patch)
tree5c049287ce80a9325278b5b82de7eccb15f484d2 /config.def.h
parent1bd6d201020f67160872c28534edff532b5198b9 (diff)
downloadsurf-7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b.tar.gz
surf-7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b.tar.bz2
surf-7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b.zip
Communicate with webextension via a pipe
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h
index 6748f8a..8cdc397 100644
--- a/config.def.h
+++ b/config.def.h
@@ -143,15 +143,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 } },