LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2013, 01:19 PM   #1
rucarden
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Rep: Reputation: Disabled
Shfit in xpdf


I wanted to add a keyboard shortcut so that shift-space would scroll up in xpdf.
I found that any shortcuts that I created that involved shift did not work.
Has anybody else noticed this issue? Since I had already compiled xpdf anyway (this was on my office machine, which did not come with xpdf or slacware for that matter), I figured there would probably be a simple fix in the code. I found that I needed to make the change below. Is there a good reason for not having shift work with characters with hex value < 32? Can this patch be added to the xpdf package?
--- ./xpdf-3.03/xpdf/GlobalParams.cc 2011-08-15 17:08:53.000000000 -0400
+++ ../xpdf-3.03/xpdf/GlobalParams.cc 2013-04-26 10:41:00.000000000 -0400
@@ -2624,7 +2624,7 @@
lockGlobalParams;
cmds = NULL;
// for ASCII chars, ignore the shift modifier
- modMask = code <= 0xff ? ~xpdfKeyModShift : ~0;
+ modMask = ((code <= 0xff)&&(code >32)) ? ~xpdfKeyModShift : ~0;
for (i = 0; i < keyBindings->getLength(); ++i) {
binding = (KeyBinding *)keyBindings->get(i);
if (binding->code == code &&
 
Old 11-01-2013, 07:48 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
On the home page of the application the email address of the author is given.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xpdf or kpdf? anamericanjoe Linux - Software 2 09-15-2006 03:46 AM
Xpdf for Solaris 10? as400 Solaris / OpenSolaris 3 01-06-2006 05:26 PM
xpdf, pdftotext phoenix7 General 7 09-08-2005 02:54 AM
Can't find Xpdf?? crash_override_me Ubuntu 3 09-06-2005 09:28 AM
Xpdf satimis Linux - Software 3 09-04-2005 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration