XRebindKeysym()XRebindKeysym()NameXRebindKeysym – rebind a keysym to a string for client.
Synopsis
XRebindKeysym(display, keysym, mod_list, mod_count, string,
num_bytes)
Display *display;
KeySym keysym;
KeySym *mod_list;
int mod_count;
unsigned char *string;
int num_bytes;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
keysym Specifies the keysym to be rebound.
mod_list Specifies a pointer to an array of keysyms that are being
used as modifiers.
mod_count Specifies the number of modifiers in the modifier list.
string Specifies a pointer to the string that is to be copied and
returned by XLookupString() in response to later events.
num_bytes Specifies the length of the string.
DescriptionXRebindKeysym() binds the string to the specified keysym, so that
string and keysym are returned by XLookukpString when that key is
pressed and the modifiers specified in mod_list are also being held
down. This function rebinds the meaning of a keysym for a client. It
does not redefine the keycode in the server but merely provides an easy
way for long strings to be attached to keys. No text conversions are
performed; the client is responsible for supplying appropriately
encoded strings. Note that you are allowed to rebind a keysym that may
not exist.
See Volume One, Chapter 9, The Keyboard and Pointer, for a description
of keysyms and keyboard mapping.
See AlsoXChangeKeyboardMapping(), XDeleteModifiermapEntry(), XFreeModi‐
fiermap(), XGetKeyboardMapping(), XGetModifierMapping(), XInsertModi‐
fiermapEntry(), XKeycodeToKeysym(), XKeysymToKeycode(), XKeysym‐
ToString(), XLookupKeysym(), XLookupString(), XNewModifiermap(),
XQueryKeymap(), XRefreshKeyboardMapping(), XSetModifierMapping(),
XStringToKeysym().
Xlib - Keyboard XRebindKeysym()