From 652b789d1b3045293da297bcdccf3264c435bae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 7 Jun 2021 01:23:56 +0200 Subject: Add print/xpdf/patch-scrlock --- print/xpdf/patch-scrlock | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 print/xpdf/patch-scrlock diff --git a/print/xpdf/patch-scrlock b/print/xpdf/patch-scrlock new file mode 100644 index 0000000..24f4509 --- /dev/null +++ b/print/xpdf/patch-scrlock @@ -0,0 +1,16 @@ +$NetBSD + +Act as if Scroll Lock is always enabled. Useful if one cannot get +the Scroll Lock key to be properly detected. + +--- xpdf/XPDFViewer.cc.orig 2021-06-04 00:11:44.381798737 +0200 ++++ xpdf/XPDFViewer.cc +@@ -660,7 +660,7 @@ int XPDFViewer::getContext(Guint modifiers) { + (core->getLinkAction() ? xpdfKeyContextOverLink + : xpdfKeyContextOffLink) | + ((modifiers & Mod5Mask) ? xpdfKeyContextScrLockOn +- : xpdfKeyContextScrLockOff); ++ : xpdfKeyContextScrLockOn); + return context; + } + -- cgit v1.2.3