Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Key combinations

Giorgio Garofalo edited this page Jan 22, 2021 · 2 revisions

There are several features in the API which support key combinations. It's possible to define a combination this way: new KeyCombination(key, modifiers), where:

  • key is the main key required to trigger the combination as a string, e.g A, J, UP, etc
  • modifiers can be a string (1 modifier) or an array (1+ modifiers) containing key modifiers such as shift, control (or ctrl) and alt.

Example:

const combination = new KeyCombination('I', ['ctrl', 'shift']);

Clone this wiki locally