This type represents a hotkey control.
This type inherits Control type. All of its base methods and fields are also available in this type.
Control
Constructor
Constructs the hotkey.
This control is best used for temporary hotkeys, as it doesn't save with configurations. You may override this behavior using other controls.
Arguments
Name
Type
Description
id
ControlID|string
ControlID
|string
ID.
defaultKey
number?
Default hotkey value, virtual key code. Defaults to 0 .
0
Returns
Hotkey
Hotkey instance.
Example
local hotkey = gui.Hotkey('my_hotkey');
Method
Returns the assigned hotkey.
None.
number
Value.
Last updated 1 day ago
local key = hotkey:Get()