freebsd-ports/graphics/xpdf3/files/patch-xpdf_XPDFViewer.cc
Cy Schubert ed06a7905e This is the functional update of xpdf to xpdf 4.00.
graphics/xpdf is renamed (actually copied) to xpdf3. Those who want to
continue to use xpdf with a Motif interface can either install xpdf3 or
set XPDF_VERSION=3 in make.conf and continue to install graphics/xpdf.
This works around any POLA issues people might have between the
old and the new.

PR:		222002
2017-09-12 19:22:01 +00:00

13 lines
429 B
C++

--- xpdf/XPDFViewer.cc.orig 2008-04-04 15:36:27.000000000 +0300
+++ xpdf/XPDFViewer.cc 2008-04-04 15:41:05.000000000 +0300
@@ -569,6 +569,10 @@
keyCode = xpdfKeyCodeDown;
} else if (key >= XK_F1 && key <= XK_F35) {
keyCode = xpdfKeyCodeF1 + (key - XK_F1);
+ } else if (key == XK_KP_Add) {
+ keyCode = xpdfKeyPlus;
+ } else if (key == XK_KP_Subtract) {
+ keyCode = xpdfKeyMinus;
} else {
return;
}