From: Stephen Niedzielski Date: Fri, 27 Nov 2015 05:35:22 +0000 (-0700) Subject: Update docs for globalShortcut.register X-Git-Tag: v0.35.2~3^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0b245b96e4c42ef90f98809ede7e4deaf942f3c2;p=electron.git Update docs for globalShortcut.register Document return value for globalShortcut.register and common failure scenario. Fix: #3600 --- diff --git a/docs/api/global-shortcut.md b/docs/api/global-shortcut.md index a0f069d7..ab6123bd 100644 --- a/docs/api/global-shortcut.md +++ b/docs/api/global-shortcut.md @@ -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)`