Sets the function that is executed when this key is pressed
The function has two arguments
The first argument is a number containing a bitmask of the currently held modifier keys
Shift = 1, Ctrl = 2, Alt = 4
The second argument is this keybind itself
overload 1:
Keybind:setOnPress(function)
Method Property | Fluent Description | Representation |
function accepts | a function | |
Return Value | nil | |