Trigger Command

Triggers the command given by the command id. This has a similar effect as pressing the hotkey associated with that command.

Syntax

store.dispatch({ type: "TRIGGER_COMMAND", payload: command, meta: { ignorable: true } });

Parameters

command

The trigger command to execute. A full list of available command ids and their default hotkeys can be found here.

Examples

Triggers the skeleton view hotkey.

store.dispatch({
  type: "TRIGGER_COMMAND",
  payload: "triggers.toggleSkeleton",
  meta: { ignorable: true }
});