diff --git a/config.def.h b/config.def.h index 6ada1b0..14d97f7 100644 --- a/config.def.h +++ b/config.def.h @@ -70,6 +70,9 @@ Shortcut shortcuts[] = { {0, GDK_Tab, sc_toggle_index, NORMAL, {0} }, {0, GDK_J, sc_navigate, NORMAL, { NEXT } }, {0, GDK_K, sc_navigate, NORMAL, { PREVIOUS } }, + {GDK_MOD1_MASK, GDK_Right, sc_navigate, NORMAL, { NEXT } }, + {GDK_MOD1_MASK, GDK_Left, sc_navigate, NORMAL, { PREVIOUS } }, + {0, GDK_space, sc_navigate, NORMAL, { NEXT } }, {0, GDK_Escape, sc_abort, -1, {0} }, {0, GDK_i, sc_change_mode, NORMAL, { INSERT } }, {0, GDK_v, sc_change_mode, NORMAL, { VISUAL } }, @@ -80,9 +83,13 @@ Shortcut shortcuts[] = { {0, GDK_f, sc_follow, NORMAL, {0} }, {0, GDK_r, sc_rotate, NORMAL, {0} }, {0, GDK_h, sc_scroll, NORMAL, { LEFT } }, - {0, GDK_j, sc_scroll, NORMAL, { UP } }, - {0, GDK_k, sc_scroll, NORMAL, { DOWN } }, + {0, GDK_j, sc_scroll, NORMAL, { DOWN } }, + {0, GDK_k, sc_scroll, NORMAL, { UP } }, {0, GDK_l, sc_scroll, NORMAL, { RIGHT } }, + {0, GDK_Left, sc_scroll, NORMAL, { LEFT } }, + {0, GDK_Up, sc_scroll, NORMAL, { UP } }, + {0, GDK_Down, sc_scroll, NORMAL, { DOWN } }, + {0, GDK_Right, sc_scroll, NORMAL, { RIGHT } }, {0, GDK_n, sc_search, NORMAL, { FORWARD } }, {0, GDK_N, sc_search, NORMAL, { BACKWARD } }, {0, GDK_a, sc_adjust_window, NORMAL, { ADJUST_BESTFIT } }, diff --git a/zathura.c b/zathura.c index d44e897..25b6d00 100644 --- a/zathura.c +++ b/zathura.c @@ -1394,7 +1394,7 @@ sc_scroll(Argument* argument) gdouble value = gtk_adjustment_get_value(adjustment); gdouble max = gtk_adjustment_get_upper(adjustment) - view_size; - if( (argument->n == LEFT) || (argument->n == DOWN)) + if( (argument->n == LEFT) || (argument->n == UP)) gtk_adjustment_set_value(adjustment, (value - SCROLL_STEP) < 0 ? 0 : (value - SCROLL_STEP)); else if (argument->n == TOP) gtk_adjustment_set_value(adjustment, 0);