about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-20 00:53:14 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 00:53:14 +0100
commita53dc901710fc2bf487b5d98e5b6596c572d9250 (patch)
tree7e759a75838b8859b102427bace43fcc71dfdf06 /config.def.h
parentAdapt inspector handling (diff)
downloadsurf-a53dc901710fc2bf487b5d98e5b6596c572d9250.tar.gz
surf-a53dc901710fc2bf487b5d98e5b6596c572d9250.tar.bz2
surf-a53dc901710fc2bf487b5d98e5b6596c572d9250.zip
Adapt scrolling
In fact, we have a scrolling handle ersatz for now using JavaScript
calls as we don't have access anymore to scrollbars.
We'll have to manipulate the DOM directly (later).
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index 17a5149..997aaab 100644
--- a/config.def.h
+++ b/config.def.h
@@ -100,12 +100,13 @@ static Key keys[] = {
 	{ MODKEY,                GDK_KEY_l,      navigate,   { .i = +1 } },
 	{ MODKEY,                GDK_KEY_h,      navigate,   { .i = -1 } },
 
-	{ MODKEY,                GDK_KEY_j,      scroll_v,   { .i = +1 } },
-	{ MODKEY,                GDK_KEY_k,      scroll_v,   { .i = -1 } },
-	{ MODKEY,                GDK_KEY_b,      scroll_v,   { .i = -10000 } },
-	{ MODKEY,                GDK_KEY_space,  scroll_v,   { .i = +10000 } },
-	{ MODKEY,                GDK_KEY_i,      scroll_h,   { .i = +1 } },
-	{ MODKEY,                GDK_KEY_u,      scroll_h,   { .i = -1 } },
+	                                                     /* in page % */
+	{ MODKEY,                GDK_KEY_j,      scroll_v,   { .i = +10 } },
+	{ MODKEY,                GDK_KEY_k,      scroll_v,   { .i = -10 } },
+	{ MODKEY,                GDK_KEY_b,      scroll_v,   { .i = -50 } },
+	{ MODKEY,                GDK_KEY_space,  scroll_v,   { .i = +50 } },
+	{ MODKEY,                GDK_KEY_i,      scroll_h,   { .i = +10 } },
+	{ MODKEY,                GDK_KEY_u,      scroll_h,   { .i = -10 } },
 
 	{ 0,                     GDK_KEY_F11,    togglefullscreen, { 0 } },
 	{ 0,                     GDK_KEY_Escape, stop,       { 0 } },