[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-user: Keymaps to the Number-Block
Hi,
>does anybody know how to use the keys in the
>Number-Block for gschem keymaps?
>
If you look at the system-gschemrc file you will see a structure
like:
(define global-keymap
'(("Escape" . cancel)
("a" . add-keymap)
("b" . add-box-hotkey)
("c" . edit-copy-hotkey)
...
If you want to change the appropriate mapping (or add more), you needed
to know the XKeysym name and the scheme function. The scheme function
is fairly self explanatory. To get some of the more bizzare Xkeysym
names there are two ways:
1) Look in /usr/X11R6/lib/X11/XKeysymDB or wherever you have installed
X. Sometimes this file is not complete.
2) Run xev (print contents of X events), and type the key you are
interested in in the window. Sample output looks like:
...
KeyPress event, serial 22, synthetic NO, window 0x4000001,
root 0x26, subw 0x0, time 3767332248, (70,109), root:(1062,537),
state 0x10, keycode 80 (keysym 0xffb8, KP_8), same_screen YES,
XLookupString gives 1 characters: "8"
...
The string you are interested in is the keysym string (KP_8).
KP_8 is the eight key on the number pad with numlock on. If you don't
see a string beside the keymap, then you need to assign one via xmodmap.
Hope that helps. Out of curiosity what keys are you going to bind
where? I'm always interested in improving the keymapping.
-Ales