Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 2.01 KB

cp.commands.shortcut.builder.md

File metadata and controls

30 lines (23 loc) · 2.01 KB

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
  • add
  • new

API Documentation

Methods

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.
Signature cp.commands.shortcut.builder.new([receiverFn]) -> builder
Type Method
Description Creates a new shortcut builder. If provided, the receiver function
Parameters
  • receiverFn - The function which will be called with the new shortcut, when built.
Returns
  • The builder instance