From e02dabab644a6760c481e25e913d6bb01f94adec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 9 Jun 2021 23:54:11 +0200 Subject: Add print/xpdf/patch-swap-bbs --- print/xpdf/patch-swap-bbs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 print/xpdf/patch-swap-bbs (limited to 'print/xpdf') 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")); -- cgit v1.2.3