API
Methods for registering/unregistering global keyboard shortcuts for a ToDesktop application.
Remarks
This package exposes a number of methods for registering/unregistering global keyboard shortcuts for a ToDesktop application.
Note: The shortcut is global; it will work even if the app does not have the keyboard focus. This module cannot be used before the ready
event of the app module is emitted.
Functions
isRegistered()
Whether this application has registered accelerator
.
Signature:
Parameters
Returns:
Promise<boolean>
register()
Registers a global shortcut of accelerator
.
Signature:
Parameters
Returns:
Promise<void>
unregister()
Unregisters a global shortcut of accelerator
.
Signature:
Parameters
Returns:
Promise<void>
unregisterAll()
Unregisters all global shortcuts.
Signature:
Returns:
Promise<void>