Create a keybind
Optionalkeys: KeybindKeysSet up the default keys that need to be pressed
Optionalalt?: booleanOptionalctrl?: booleanOptionalkey?: string | numberMain key, can be a numeric keycode or a lower case character
Optionalmeta?: booleanOptionalshift?: booleanOptionalvariations?: Record<string, VariationModifier>Optionalvariations: Record<string, VariationModifier>Test which variation would be triggered by the event. Returns the ID of the variation if triggered
The event to test
Optionalvariation: stringThe variation to test againts
Unassign the assigned key
Get the name of the bound key
Optionalkey: numberGet display text showing the keybind
Optionalformatted: booleanIf true, the return string will include HTML formatting
Check if a key is assigned
Test if the keybind would be triggered by the event
Optionalinput_type: stringOpen a UI to let the user record a new key combination
Save any changes to local storage
Optionalsave: booleanSave all keybinding changes to local storage. Set to false if updating multiple at once
Optionaldefault_keybind: KeybindAssign an action to the keybind
ID of the action
Optionalsub_id: stringsub keybind ID
Stop recording a new key combination
Returns the label of the keybinding
A customizable keybind