Normal Topic Number Keypad in Linux (Read 814 times)
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Number Keypad in Linux
Aug 29th, 2006 at 7:16pm
Print Post Print Post  
Has anybody else had trouble getting the special characters on the number keypad to work in Sesame using linux, I have used them in other applications and they work fine but not Sesame?? Like the "-" the dash on the regular keys work, only the ones on the number keypads don't.   Cry
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Number Keypad in Linux
Reply #1 - Aug 29th, 2006 at 8:44pm
Print Post Print Post  
Unlike Windows, X11 does not always automatically unify the keyboard. In other words, it does not map the "+" on the keypad to the same key as the "+" above the "=". Fortunately, the keyboard is completely modifiable under X11. You can set any key to pretend it is just like any other key using the command xmodmap.

The following is pretty advanced stuff. Be careful. Read the appropriate manual pages ("man xmodmap") and always work on copies.

If you run:
Code
Select All
xmodmap -pke
 



It will send the current mapping to standard output. So if you run:
Code
Select All
xmodmap -pke > MyKeyboard.txt
 


it will send the current mapping to a text file name "MyKeyboard.txt". You can then edit this file with your favorite text editor. For example, there is likely to be a line in the file:
Code
Select All
keycode  86 = KP_Add XF86_Next_VMode
 



That is telling X11 that when keycode 86 comes in, it means "send" the keypad Add ("+") symbol to X11. If you change this to read:
Code
Select All
keycode  86 = plus XF86_Next_VMode
 


Then if the keycode 86 comes in, it will send the regular plus sign "+" (the one above the equal sign) to X11.

Once you have made the appropriate changes to your text file, you can load up your new keyboard mapping file by using:
Code
Select All
xmodmap MyKeyboard.txt
 



Of course, always work on a copy of the original file, so that if you make a mistake you can restore the original keyboard mapping from the original file.

That should hold you, while we get Sesame not to care which of the two "+" keys you pressed.

  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Number Keypad in Linux
Reply #2 - Aug 29th, 2006 at 9:09pm
Print Post Print Post  
Quote:
That should hold you, while we get Sesame not to care which of the two "+" keys you pressed.


Which just did. It'll be in the next release.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Number Keypad in Linux
Reply #3 - Aug 29th, 2006 at 9:16pm
Print Post Print Post  
Wink Thanks Bunches !!!
  
Back to top
 
IP Logged