summaryrefslogtreecommitdiff
path: root/app-text/epdfview/files/vikeybindings.patch
blob: 2e4b4d4736dfd5e85ebb98e1d1495d6943033078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Index: src/gtk/PageView.cxx
===================================================================
--- src/gtk/PageView.cxx	(revision 296)
+++ src/gtk/PageView.cxx	(revision 300)
@@ -572,23 +572,37 @@
     {
         case GDK_Left:
         case GDK_KP_Left:
+        case GDK_h:
             direction = GTK_SCROLL_STEP_LEFT;
             horizontal = TRUE;
             break;
 
         case GDK_Right:
         case GDK_KP_Right:
+        case GDK_l:
             horizontal = TRUE;
             direction = GTK_SCROLL_STEP_RIGHT;
             break;
 
         case GDK_Up:
         case GDK_KP_Up:
+        case GDK_k:
+            if ( position == adjustment->lower )
+            {
+                pter->scrollToPreviousPage ();
+                return TRUE;
+            }
             direction = GTK_SCROLL_STEP_UP;
             break;
 
         case GDK_Down:
         case GDK_KP_Down:
+        case GDK_j:
+            if ( position == ( adjustment->upper - adjustment->page_size) )
+            {
+                pter->scrollToNextPage ();
+                return TRUE;
+            }
             direction = GTK_SCROLL_STEP_DOWN;
             break;