XkbInitCanonicalKeyTypes(3)

✨ NAME ✨

okay so bestie, this is XkbInitCanonicalKeyTypes(3) from the XKB FUNCTIONS manual β€” and it sets the definitions of the canonical key types in a client map to their default values. slay.

πŸ¦‹ SYNOPSIS πŸ¦‹

Status XkbInitCanonicalKeyTypes (XkbDescPtr xkb, unsigned int which, int keypadVMod);

πŸŽ€ ARGUMENTS πŸŽ€

  • xkb β€” keyboard description containing client map to initialize.
  • which β€” mask of types to initialize.
  • keypadVMod β€” index of NumLock virtual modifier.

🌸 DESCRIPTION 🌸

XkbInitCanonicalKeyTypes initializes the first XkbNumRequiredTypes key types of the keyboard specified by the xkb parameter to their default values. no cap.

The which parameter specifies what canonical key types to initialize and is a bitwise inclusive OR of the following masks: XkbOneLevelMask, XkbTwoLevelMask, XkbAlphabeticMask, and XkbKeypadMask. Only those canonical types specified by the which mask are initialized. periodt.

If XkbKeypadMask is set in the which parameter, XkbInitCanonicalKeyTypes looks up the NumLock named virtual modifier to determine which virtual modifier to use when initializing the KEYPAD key type. If the NumLock virtual modifier does not exist, XkbInitCanonicalKeyTypes creates it. it's giving very main character energy, honestly.

XkbInitCanonicalKeyTypes normally returns Success. It returns BadAccess if the Xkb extension has not been properly initialized, and BadAccess if the xkb parameter is not valid. iykyk β€” yes, it really says BadAccess twice.

πŸ‘‘ RETURN VALUES πŸ‘‘

  • Success β€” the XkbInitCanonicalKeyTypes function returns Success if the Xkb extension has been properly initialized and the xkb parameter is valid.

πŸ’… DIAGNOSTICS πŸ’…

  • BadAccess β€” the Xkb extension has not been properly initialized.

πŸ’– and that's the whole tea, bestie: X Version 11, libX11 1.8.14, XkbInitCanonicalKeyTypes(3) β€” bye! 🫢

πŸ“¦ where this page comes from