[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Redefining numeric pad keys



On Tue, Jul 23, 2002 at 19:22:57 +0200, Balazs Javor wrote:
> One of them contained a nice detailed description on how you can
> 'hardwire' certain keys. e.g. the numeric keyboard to always result
> in numbers no matter the NumLock state etc.

You can use loadkeys (for the console) and xmodmap (for XWindow) to
redefine the keys. For more details, man loadkeys, man xmodmap. FYI,
here are the corresponding data concerning the numeric keypad that
I use, but you may need a different configuration depending on your
machine:

For loadkeys:
plain	keycode	82 = zero
plain	keycode	79 = one
plain	keycode	80 = two
plain	keycode	81 = three
plain	keycode	75 = four
plain	keycode	76 = five
plain	keycode	77 = six
plain	keycode	71 = seven
plain	keycode	72 = eight
plain	keycode	73 = nine
plain	keycode	98 = slash
plain	keycode	55 = asterisk
plain	keycode	74 = minus
plain	keycode	78 = plus
plain	keycode	83 = period
plain	keycode	96 = Return

For xmodmap:
keycode  63 = asterisk asterisk
keycode  79 = 7 7
keycode  80 = 8 8
keycode  81 = 9 9
keycode  82 = minus minus
keycode  83 = 4 4
keycode  84 = 5 5
keycode  85 = 6 6
keycode  86 = plus plus
keycode  87 = 1 1
keycode  88 = 2 2
keycode  89 = 3 3
keycode  90 = 0 0
keycode  91 = period period
keycode 108 = Return Return
keycode 112 = slash slash

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: