docs » cp.commands.shortcut.builder


Shortcut Commands Builder Module.

API Overview

  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Methods

add

Signature cp.commands.shortcut.builder:add(modifier, [keyCode]) -> shortcut/command
Type Method
Description Adds the specified modifier to the set. If a keyCode is provided,
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`.

new

Signature cp.commands.shortcut.builder:new(receiverFn)
Type Method
Description Creates a new shortcut builder. If provided, the receiver function
Parameters
  • None
Returns
  • None

results matching ""

    No results matching ""