XkbKeysymToModifiers(3) XKB FUNCTIONS XkbKeysymToModifiers(3)

# [NAME](#NAME)

XkbKeysymToModifiers - Finds the set of modifiers bound to a particular keysym on the core keyboard

# [SYNOPSIS](#SYNOPSIS)

**unsigned int XkbKeysymToModifiers** **(Display \*dpy,** **KeySym ks);**

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

connection to X server

[*ks*](#ks)

keysym of interest

# [DESCRIPTION](#DESCRIPTION)

*XkbKeysymToModifiers* finds the set of modifiers currently bound to the keysym *ks* on the core keyboard. The value returned is the mask of modifiers bound to the keysym *ks.* If no modifiers are bound to the keysym, *XkbKeysymToModifiers* returns zero; otherwise, it returns the inclusive OR of zero or more of the following: ShiftMask, ControlMask, LockMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, and Mod5Mask.

libX11 1.8.14 X Version 11

---

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