aboutsummaryrefslogtreecommitdiff
path: root/print/xpdf/patch-jk
diff options
context:
space:
mode:
Diffstat (limited to 'print/xpdf/patch-jk')
-rw-r--r--print/xpdf/patch-jk17
1 files changed, 17 insertions, 0 deletions
diff --git a/print/xpdf/patch-jk b/print/xpdf/patch-jk
new file mode 100644
index 0000000..bd614ee
--- /dev/null
+++ b/print/xpdf/patch-jk
@@ -0,0 +1,17 @@
+$NetBSD
+
+Bind j and k keys
+
+--- xpdf/GlobalParams.cc.orig 2021-06-09 23:49:14.773910902 +0200
++++ xpdf/GlobalParams.cc
+@@ -901,6 +901,10 @@ void GlobalParams::createDefaultKeyBindings() {
+ xpdfKeyContextAny, "scrollUp(16)"));
+ keyBindings->append(new KeyBinding(xpdfKeyCodeDown, xpdfKeyModNone,
+ xpdfKeyContextAny, "scrollDown(16)"));
++ keyBindings->append(new KeyBinding('k', xpdfKeyModNone,
++ xpdfKeyContextAny, "scrollUp(16)"));
++ keyBindings->append(new KeyBinding('j', xpdfKeyModNone,
++ xpdfKeyContextAny, "scrollDown(16)"));
+ keyBindings->append(new KeyBinding('o', xpdfKeyModNone,
+ xpdfKeyContextAny, "open"));
+ keyBindings->append(new KeyBinding('O', xpdfKeyModNone,