[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-user: Keymaps to the Number-Block
Thank's for the hint about xev. It works just fine.
I am using Cadence-EDA at work and our key-bindings
include the number-block to navigate in a big
schematic:
5: zoom to limits
8: move half a screen up
4: half a screen left
...
I am trying to implement something similar.
At least the zoom to fit works ...
Wolfgang
--- Ales Hvezda <ahvezda@seul.org> wrote:
> 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
>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/