XkbLookupKeySym(3)
π XkbLookupKeySym(3) π β the XKB FUNCTIONS page π
πΈ NAME πΈ
XkbLookupKeySym β find the symbol associated with a key for a particular state. periodt β¨
π¦ SYNOPSIS π¦
Bool XkbLookupKeySym (Display *dpy, KeyCode key, unsigned int state,
unsigned int *mods_rtrn, KeySym *sym_rtrn);
π ARGUMENTS π
dpyβ your connection to the X server, bestie.keyβ the key whose symbols we're trying to find.stateβ the state we want the symbol for.mods_rtrnβ gets backfilled with consumed modifiers.sym_rtrnβ gets backfilled with the symbol associated withkey+state.
π DESCRIPTION π
okay so XkbLookupKeySym is literally the equivalent of the core XLookupKeySym function. For the core keyboard, if you give it a keycode key and an Xkb state state, it returns the symbol associated with the key in sym_rtrn, plus the list of modifiers that should still be applied in mods_rtrn. π₯
The state parameter is the state from a KeyPress or KeyRelease event. And XkbLookupKeySym returns True if it succeeds β slay. π
π SEE ALSO π
XLookupKeySym(3)β the core function it's equivalent to, iykyk.
π that's a wrap, bestie! brought to you by X Version 11 and libX11 1.8.14 β this is the XkbLookupKeySym(3) page, no cap. πβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms