XkbKeyNumSyms(3)
π NAME π
okay so bestie, welcome to the XkbKeyNumSyms(3) page from XKB FUNCTIONS β this one is all about the function that returns the total number of keysyms for the key corresponding to keycode. β¨
π SYNOPSIS π
int XkbKeyNumSyms (XkbDescPtr xkb, KeyCode keycode);
π¦ ARGUMENTS π¦
xkbβ Xkb description of interest. literally the Xkb description you care about.keycodeβ keycode of interest. the keycode youβre checking.
πΈ DESCRIPTION πΈ
okay so picture this: the key width and number of groups associated with a key are used to form a small two-dimensional array of KeySyms for a key. itβs giving tiny key-specific grid, and that array may be different sizes for different keys. no cap. π«Ά
The array for a single key is stored as a linear list, in row-major order. The arrays for all of the keys are stored in the syms field of the client map. There is one row for each group associated with a key and one column for each level.
The index corresponding to a given group and shift level is computed as:
idx = group_index * key_width + shift_level
The offset field of the key_sym_map entry for a key is used to access the beginning of the array. π
XkbKeyNumSyms returns the total number of keysyms for the key corresponding to keycode. periodt. π
Signed off with X Version 11, libX11 1.8.14, and the XkbKeyNumSyms(3) page; the footer has no separate date, so thatβs the exact version vibe weβre leaving you with. π
π¦ 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