Skip to content

ElectronGlobalShortcut.isRegistered method

ElectronGlobalShortcut › isRegistered

Unofficial

Returns whether this application has registered accelerator.

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): boolean

Parameters:

Parameter Type Description
accelerator string The accelerator to check.

Returns: booleanWhether this application has registered accelerator.