XkbLookupKeySym(3) XKB FUNCTIONS XkbLookupKeySym(3)

# [NAME](#NAME)

XkbLookupKeySym - Find the symbol associated with a key for a particular state

# [SYNOPSIS](#SYNOPSIS)

**Bool XkbLookupKeySym** **(Display \*dpy,** **KeyCode key,** **unsigned int state,** **unsigned int \*mods\_rtrn,** **KeySym \*sym\_rtrn);**

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

connection to X server

[*key*](#key)

key for which symbols are to be found

[*state*](#state)

state for which symbol should be found

[*mods\_rtrn*](#mods_rtrn)

backfilled with consumed modifiers

[*sym\_rtrn*](#sym_rtrn)

backfilled with symbol associated with key + state

# [DESCRIPTION](#DESCRIPTION)

*XkbLookupKeySym* is the equivalent of the core *XLookupKeySym* function. For the core keyboard, given a keycode *key* and an Xkb state *state, XkbLookupKeySym* returns the symbol associated with the key in *sym\_rtrn* and the list of modifiers that should still be applied in *mods\_rtrn.* The *state* parameter is the state from a KeyPress or KeyRelease event. *XkbLookupKeySym* returns True if it succeeds.

# [SEE ALSO](#SEE_ALSO)

[**XLookupKeySym**(3)](/man/os/libx11/XLookupKeySym.3)

libX11 1.8.14 X Version 11

---

Document: XkbLookupKeySym(3) from libx11 1.8.14-r0 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
