Command Hotkeys

Switches which hotkey triggers which command.

Syntax

store.dispatch({ type: "SET_COMMAND_HOTKEYS", payload: commandHotkeys });

Parameters

commandHotkeys

The object that maps command ids to their associated hotkey. A full list of available command ids and their default hotkeys can be found here.

Examples

Switches the flag command hotkey to “f”.

store.dispatch({
  type: "SET_COMMAND_HOTKEYS",
  payload: {"triggers.flag": "f"}
});