Path: utzoo!attcan!telly!lethe!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Numeric keypad and making NumLock key work Message-ID: <9012192055.AA10082@Larry.McRCIM.McGill.EDU> Date: 19 Dec 90 20:55:04 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 35 > Is there a way to set up the numeric keypad so that pressing the > NumLock key actually makes the keypad send the characters represented > on top of the key caps (i.e., 0-9.=/*-+) ? You say you're using Sun SS1+s; I assume you have the type-4 keyboard? > If this isn't possible, can the keypad be configured (via xmodmap, > perhaps? I am rather unfamiliar with that utility) to always send > those characters? This is workable. Try something like the following: xmodmap - << EOF keysym R13 = 1 keysym R14 = 2 keysym R15 = 3 keysym R10 = 4 keysym R11 = 5 keysym R12 = 6 ....etc EOF You will have to fill in the rest of the table, of course; you can use xev to find out what keys are what. If this might be run more than once, you might want to use keycodes instead; xev reports those as well. Depending on the application, you might be able to use KP_0, KP_1, KP_2, etc, instead of 0, 1, 2, etc. This is to be preferred if it works, since it involves less lying.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu