chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -9,7 +9,7 @@ be triggered only when the app is focused. To do so, specify an
|
|||
[`accelerator`] property when creating a [MenuItem].
|
||||
|
||||
```js
|
||||
const {Menu, MenuItem} = require('electron')
|
||||
const { Menu, MenuItem } = require('electron')
|
||||
const menu = new Menu()
|
||||
|
||||
menu.append(new MenuItem({
|
||||
|
@ -33,7 +33,7 @@ You can use the [globalShortcut] module to detect keyboard events even when
|
|||
the application does not have keyboard focus.
|
||||
|
||||
```js
|
||||
const {app, globalShortcut} = require('electron')
|
||||
const { app, globalShortcut } = require('electron')
|
||||
|
||||
app.on('ready', () => {
|
||||
globalShortcut.register('CommandOrControl+X', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue