[comp.windows.x] Accessing Number Pad keys in X

garnaat@arisia.xerox.com (Mitch Garnaat 76260) (05/05/91)

I'm running Openwindows 2.0 on a Sparc 2, SunOs 4.1.1.  I have an Xt
based application and I would like to bind actions to the 4,8,6,9 keys
on the numeric keypad.  I thought these were called R10,R8,R12 and R14
respectively but when I use those names in the translation table, nothing
happens.  If I bind the actions to other keys not on the numeric keypad
they do work so its not a problem with my actions procedures.

Any suggestions?

Thanks, 
mitch
-- 
----------------------------------------------------------------
Mitch Garnaat					Xerox Corp.
garnaat@arisia.xerox.com			(716)427-6260

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (05/07/91)

> I'm running Openwindows 2.0 on a Sparc 2, SunOs 4.1.1.  I have an Xt
> based application and I would like to bind actions to the 4,8,6,9
> keys on the numeric keypad.  I thought these were called R10, R8, R12
> and R14 respectively but when I use those names in the translation
> table, nothing happens.

Check with xmodmap -pk or xev.  I think you'll find they're Up, Left,
Right, and Down, not R8, R10, R12, and R14.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu