XRebindKeysym

Syntax

XRebindKeysym(display, keysym, list, mod_count, string, num_bytes)
      Display *display;
      KeySym keysym;
      KeySym list[];
      int mod_count;
      unsigned char *string;
      int num_bytes;

Arguments

display Specifies the connection to the X server.
keysym Specifies the KeySym that is to be rebound.
list Specifies the KeySyms to be used as modifiers.
mod_count Specifies the number of modifiers in the modifier list.
string Specifies the string that is copied and will be returned by XLookupString().
num_bytes Specifies the number of bytes in the string argument.

Description

The XRebindKeysym() function can be used to rebind the meaning of a KeySym for the client. It does not redefine any key in the X server but merely provides an easy way for long strings to be attached to keys. XLookupString() returns this string when the appropriate set of modifier keys are pressed and when the KeySym would have been used for the translation. No text conversions are performed; the client is responsible for supplying appropriately encoded strings. Note that you can rebind a KeySym that may not exist.

See also

XLookupKeysym(), XLookupString(), XRefreshKeyboardMapping(), XStringToKeysym() XButtonEvent, XMapEvent, "Latin-1 Keyboard Event Functions".
Christophe Tronche, [email protected]