From 61268bb4f112904621f8019975f74d88314738e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 9 Jun 2021 23:53:53 +0200 Subject: Add print/xpdf/patch-jk --- print/xpdf/patch-jk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 print/xpdf/patch-jk 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, -- cgit v1.2.3