Buy Me a Coffee at ko-fi.com

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: Function): Keybind
typings.1445582840typings.849613564
Method PropertyFluent DescriptionRepresentation
function accepts
Return Value