:Keybind

type KeyId = (Enum.UserInputType | Enum.KeyCode)
export type Keybind = {
Value: Enum.KeyCode?,
DeleteKey: Enum.KeyCode?,
Enabled: boolean?,
IgnoreGameProcessed: boolean?,
Callback: ((KeyId) -> any)?,
OnKeybindSet: ((KeyId) -> any)?,
OnBlacklistedKeybindSet: ((KeyId) -> any)?,
KeyBlacklist: {
[number]: KeyId
},
SetValue: ((Keybind, New: Enum.KeyCode) -> any)?,
WaitForNewKey: ((Keybind) -> any)?
}
Example usage:
:Keybind({
Label = "Toggle checkbox",
Value = Enum.KeyCode.Q,
OnKeybindSet = function(self, KeyId)
warn("[OnKeybindSet] .Value ->", KeyId)
end,
Callback = function(self, KeyId)
print(KeyId)
TestCheckbox:Toggle()
end,
})
Theme colors:
Tag
Affects
FrameBg
Background color
FrameBgTransparency
Background transparency
Text
Text color
TextFont
Text font
TextSize
Text font size
Last updated