ports/graphics/xpdf/files/patch-xpdf_GlobalParams.cc
Marcelo Araujo 57da3c2f73 - Adding support to recognizing the keys Ctrl+(numpad+) and Ctrl+(numpad-) to control the ZoomIn and ZoomOut.
- Bump PORTREVISION.

Submitted by:	Eugeny N Dzhurinsky <bofh@redwerk.com> (via email)
2008-04-08 03:57:47 +00:00

13 lines
533 B
C++

--- xpdf/GlobalParams.cc.orig 2007-02-28 00:05:52.000000000 +0200
+++ xpdf/GlobalParams.cc 2008-04-04 15:44:24.000000000 +0300
@@ -1566,6 +1566,10 @@
*code = xpdfKeyCodeUp;
} else if (!strcmp(p0, "down")) {
*code = xpdfKeyCodeDown;
+ } else if (!strcmp(p0, "numpad-plus")) {
+ *code = xpdfKeyPlus;
+ } else if (!strcmp(p0, "numpad-minus")) {
+ *code = xpdfKeyMinus;
} else if (p0[0] == 'f' && p0[1] >= '1' && p0[1] <= '9' && !p0[2]) {
*code = xpdfKeyCodeF1 + (p0[1] - '1');
} else if (p0[0] == 'f' &&