Add a keybind picker to a tab by callingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Footagesus/WindUI/llms.txt
Use this file to discover all available pages before exploring further.
:Keybind({...}). Clicking the element enters a listening mode — the next key or mouse button pressed becomes the new binding.
When a bound key is pressed anywhere in the game (and no text box has focus), the Callback fires with the key name string.
Parameters
Label displayed next to the key badge. Defaults to
"Keybind" when omitted.Secondary line of text rendered beneath the title.
Default key name, e.g.
"G", "F", "MouseLeft", or "MouseRight". Must match a valid Enum.KeyCode name or the special strings "MouseLeft" / "MouseRight".Identifier used by the config system to save and restore this element’s value between sessions.
Called each time the bound key is pressed. Receives the key name string (e.g.
"G").Converting the key name to an EnumItem
The callback delivers a plain string. Convert it to anEnum.KeyCode with:
Window:SetToggleKey:
Methods
keybind:Set(value: string | EnumItem)
keybind:Set(value: string | EnumItem)
Programmatically assigns a new key without user interaction. Accepts either a key name string or an
EnumItem.Notes
Clicking the element shows
"..." for 0.2 seconds before listening begins. This prevents the click itself from being captured as the new binding.