Adds the specified modifier to the set. If a keyCode is provided, no more modifiers can be added and the original command is returned instead. Otherwise, self is returned and further modifiers can be added.
Parameters
modifier - (optional) The modifier that was added.
keyCode - (optional) The key code being modified.
Returns
self if no keyCode is provided, or the original command.
receiverFn - An optional function which will be called with the new shortcut, when built.
Returns
The builder instance
Notes
If provided, the receiver function will be called when the shortcut has been configured, and passed the new shortcut. The result of that function will be returned to the next stage.
If no receiverFn is provided, the shortcut will be returned directly.