diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-09 23:54:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-09 23:54:11 +0200 |
commit | e02dabab644a6760c481e25e913d6bb01f94adec (patch) | |
tree | 8a5ee54755f0cf7b03b675b3edb3e36b0250802d /print/xpdf/patch-swap-bbs | |
parent | 61268bb4f112904621f8019975f74d88314738e9 (diff) | |
download | patches-e02dabab644a6760c481e25e913d6bb01f94adec.tar.gz |
Add print/xpdf/patch-swap-bbs
Diffstat (limited to 'print/xpdf/patch-swap-bbs')
-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")); |