diff options
-rw-r--r-- | print/xpdf/patch-swap-bbs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/print/xpdf/patch-swap-bbs b/print/xpdf/patch-swap-bbs new file mode 100644 index 0000000..78a6439 --- /dev/null +++ b/print/xpdf/patch-swap-bbs @@ -0,0 +1,24 @@ +$NetBSD + +Swap the Backspace and b key bindings. + +--- xpdf/GlobalParams.cc.orig 2021-06-09 22:53:14.586298336 +0200 ++++ xpdf/GlobalParams.cc +@@ -885,7 +885,7 @@ void GlobalParams::createDefaultKeyBindings() { + "scrollToBottomRight")); + keyBindings->append(new KeyBinding(xpdfKeyCodePgUp, xpdfKeyModNone, + xpdfKeyContextAny, "pageUp")); +- keyBindings->append(new KeyBinding(xpdfKeyCodeBackspace, xpdfKeyModNone, ++ keyBindings->append(new KeyBinding('b', xpdfKeyModNone, + xpdfKeyContextAny, "pageUp")); + keyBindings->append(new KeyBinding(xpdfKeyCodeDelete, xpdfKeyModNone, + xpdfKeyContextAny, "pageUp")); +@@ -941,7 +941,7 @@ void GlobalParams::createDefaultKeyBindings() { + "prevPageNoScroll")); + keyBindings->append(new KeyBinding('v', xpdfKeyModNone, + xpdfKeyContextAny, "goForward")); +- keyBindings->append(new KeyBinding('b', xpdfKeyModNone, ++ keyBindings->append(new KeyBinding(xpdfKeyCodeBackspace, xpdfKeyModNone, + xpdfKeyContextAny, "goBackward")); + keyBindings->append(new KeyBinding('g', xpdfKeyModNone, + xpdfKeyContextAny, "focusToPageNum")); |