diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-09 23:53:53 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-09 23:53:53 +0200 |
commit | 61268bb4f112904621f8019975f74d88314738e9 (patch) | |
tree | de0776c90ed7bc8f692e18ef1430826e683b9694 /print/xpdf/patch-jk | |
parent | b570a6619609cb178f144e330b3360184fe4c156 (diff) | |
download | patches-61268bb4f112904621f8019975f74d88314738e9.tar.gz |
Add print/xpdf/patch-jk
Diffstat (limited to 'print/xpdf/patch-jk')
-rw-r--r-- | print/xpdf/patch-jk | 17 |
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, |