Update global-shortcut.md

Make it clear that the `global-shortcut` module should not be used until the ready event of app module gets emitted.
This commit is contained in:
Hank Bao 2015-07-09 12:30:37 +08:00
parent dbb6723dfa
commit 7b19b6b4f2

View file

@ -3,6 +3,7 @@
The `global-shortcut` module can register/unregister a global keyboard shortcut
in operating system, so that you can customize the operations for various shortcuts.
Note that the shortcut is global, even if the app does not get focused, it will still work.
You should not use this module until the ready event of app module gets emitted.
```javascript
var globalShortcut = require('global-shortcut');