Update docs for globalShortcut.register
Document return value for globalShortcut.register and common failure scenario. Fix: #3600
This commit is contained in:
parent
42454b07d0
commit
0b245b96e4
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,10 @@ The `global-shortcut` module has the following methods:
|
|||
* `callback` Function
|
||||
|
||||
Registers a global shortcut of `accelerator`. The `callback` is called when
|
||||
the registered shortcut is pressed by the user.
|
||||
the registered shortcut is pressed by the user. Returns `true` if the shortcut
|
||||
`accelerator` was registered, `false` otherwise. For example, the specified
|
||||
`accelerator` has already been registered by another caller or other native
|
||||
applications.
|
||||
|
||||
### `globalShortcut.isRegistered(accelerator)`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue