Greg Brubaker wrote:
> In the keysymdef.h file, there are defines that connect keysym names to their 
> hexadecimal equivalent (as I understand).  Where are the "functions" that are 
> associated or are they just coded in the operating system.  Is there a file 
> that defines these "functions"?  What I am getting at is that I need to 
> associate a new outside function to a key and want to know how to?

XStringToKeysym, XKeysymToString, XKeycodeToKeysym, & XKeysymToKeycode
in libX11 are the functions.

> For example, I want to redefine the Delete key.  It is has a #define 
> XK_Delete OxFFFF.  Is OxFFFF just part of the operating system?  Can I 
> redefine the Delete key to our function (Our_Delete)?  If so, how?  Maybe 
> this is not possible, but I want to know.

The values and mappings are defined by the X11 protocol - you cannot
change them.   You can use xmodmap to make a keyboard key emit a
different keysym (XK_Backspace instead XK_Delete perhaps).

Changing what happens when you press the delete key is application
specific - it's very different in xterm vs. firefox, etc.

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to