mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
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:
@@ -3,6 +3,7 @@
|
|||||||
The `global-shortcut` module can register/unregister a global keyboard shortcut
|
The `global-shortcut` module can register/unregister a global keyboard shortcut
|
||||||
in operating system, so that you can customize the operations for various shortcuts.
|
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.
|
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
|
```javascript
|
||||||
var globalShortcut = require('global-shortcut');
|
var globalShortcut = require('global-shortcut');
|
||||||
|
|||||||
Reference in New Issue
Block a user