Merge pull request #3027 from stevekinney/minor-style-update-global-shortcut

Minor style update to the global-shortcut documentation
This commit is contained in:
Cheng Zhao 2015-10-08 10:47:39 +08:00
commit 87faae1b13

View file

@ -16,7 +16,7 @@ app.on('ready', function() {
// Register a 'ctrl+x' shortcut listener.
var ret = globalShortcut.register('ctrl+x', function() {
console.log('ctrl+x is pressed');
})
});
if (!ret) {
console.log('registration failed');
@ -62,4 +62,4 @@ Unregisters the global shortcut of `accelerator`.
### `globalShortcut.unregisterAll()`
Unregisters all the global shortcuts.
Unregisters all of the global shortcuts.