1XkbTranslateKeyCode(3) XKB FUNCTIONS XkbTranslateKeyCode(3)
2
3
4
6 XkbTranslateKeyCode - Translate a keycode to a key symbol and modi‐
7 fiers
8
10 Bool XkbTranslateKeyCode (XkbDescPtr xkb, KeyCode key, unsigned int
11 mods, unsigned int *mods_rtrn, KeySym *keysym_rtrn);
12
14 - xkb keyboard description to use for translation
15
16 - key keycode to translate
17
18 - mods modifiers to apply when translating key
19
20 - mods_rtrn
21 backfilled with unconsumed modifiers
22
23 - keysym_rtrn
24 keysym resulting from translation
25
27 mods_rtrn is backfilled with the modifiers consumed by the translation
28 process. mods is a bitwise inclusive OR of the legal modifier masks:
29 ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask,
30 Mod4Mask, Mod5Mask.The AlwaysConsumeShiftAndLock library control (see
31 below), if enabled, causes XkbTranslateKeyCode to consume shift and
32 lock. XkbTranslateKeyCode returns True if the translation resulted in
33 a keysym, and False if it resulted in NoSymbol.
34
35 The AlwaysConsumeShiftAndLock control, if enabled, forces XLookupString
36 to consume the Shift and Lock modifiers when processing all keys, even
37 if the definition for the key type does not specify these modifiers.
38 The AlwaysConsumeShiftAndLock control is unset by default.
39
41 XLookupString(3)
42
43
44
45X Version 11 libX11 1.3.4 XkbTranslateKeyCode(3)