aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-09 23:53:53 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-09 23:53:53 +0200
commit61268bb4f112904621f8019975f74d88314738e9 (patch)
treede0776c90ed7bc8f692e18ef1430826e683b9694 /print
parentb570a6619609cb178f144e330b3360184fe4c156 (diff)
downloadpatches-61268bb4f112904621f8019975f74d88314738e9.tar.gz
Add print/xpdf/patch-jk
Diffstat (limited to 'print')
-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,