XLQP Gen1
ElementsContent & layout

AddShortcutHint

Adds a compact hint showing a key or bind and what it does.

AddShortcutHint

What it does

Adds a compact hint showing a key or bind and what it does.

When to use it

Use it to teach keyboard shortcuts beside the feature they control.

ElementFunction:AddShortcutHint(HintConfig)

RightGroup:AddShortcutHint({
    Name = "Open UI",
    Key = "RightShift",
    Content = "Fast reminder for the current window toggle key."
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.