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)?
}
: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,
})