This repository was archived by the owner on Jul 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
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:
-
keyis the main key required to trigger the combination as a string, e.gA,J,UP, etc -
modifierscan be a string (1 modifier) or an array (1+ modifiers) containing key modifiers such asshift,control(orctrl) andalt.
Example:
const combination = new KeyCombination('I', ['ctrl', 'shift']);