ElectronGlobalShortcut.registerAll method
ElectronGlobalShortcut › registerAll
Unofficial
Registers a global shortcut of allaccelerator items in accelerators. The callback is called when any of the registered shortcuts are pressed by the user.When a given accelerator is already taken by other applications, this call will silently fail.
Signature:
registerAll(accelerators: string[], callback: () => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| accelerators | string[] | The accelerators to register. |
| callback | () => void | Called when any of the registered shortcuts is pressed. |
Returns: void