ElectronGlobalShortcut.isRegistered method
ElectronGlobalShortcut › isRegistered
Unofficial
Returns whether this application has registeredaccelerator.When the accelerator is already taken by other applications, this call will still return
false. This behavior is intended by operating systems, since they don't want applications to fight for global shortcuts. Signature:
isRegistered(accelerator: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| accelerator | string | The accelerator to check. |
Returns: boolean — Whether this application has registered accelerator.