|
@@ -14,7 +14,7 @@ See [`Menu`](menu.md) for examples.
|
|
|
* `menuItem` MenuItem
|
|
|
* `browserWindow` [BrowserWindow](browser-window.md)
|
|
|
* `event` [KeyboardEvent](structures/keyboard-event.md)
|
|
|
- * `role` String (optional) - Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteandmatchstyle`, `delete`, `selectall`, `reload`, `forcereload`, `toggledevtools`, `resetzoom`, `zoomin`, `zoomout`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideothers`, `unhide`, `quit`, `startspeaking`, `stopspeaking`, `close`, `minimize`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu` or `windowMenu` - Define the action of the menu item, when specified the
|
|
|
+ * `role` String (optional) - Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `close`, `minimize`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu` - Define the action of the menu item, when specified the
|
|
|
`click` property will be ignored. See [roles](#roles).
|
|
|
* `type` String (optional) - Can be `normal`, `separator`, `submenu`, `checkbox` or
|
|
|
`radio`.
|
|
@@ -81,7 +81,7 @@ The `role` property can have following values:
|
|
|
* `reload` - Reload the current window.
|
|
|
* `forceReload` - Reload the current window ignoring the cache.
|
|
|
* `toggleDevTools` - Toggle developer tools in the current window.
|
|
|
-* `toggleFullScreen` - Toggle full screen mode on the current window.
|
|
|
+* `togglefullscreen` - Toggle full screen mode on the current window.
|
|
|
* `resetZoom` - Reset the focused page's zoom level to the original size.
|
|
|
* `zoomIn` - Zoom in the focused page by 10%.
|
|
|
* `zoomOut` - Zoom out the focused page by 10%.
|
|
@@ -151,7 +151,7 @@ A `String` indicating the type of the item.
|
|
|
|
|
|
#### `menuItem.role`
|
|
|
|
|
|
-A `String` (optional) indicating the item's role, if set. Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteandmatchstyle`, `delete`, `selectall`, `reload`, `forcereload`, `toggledevtools`, `resetzoom`, `zoomin`, `zoomout`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideothers`, `unhide`, `quit`, `startspeaking`, `stopspeaking`, `close`, `minimize`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu` or `windowMenu`
|
|
|
+A `String` (optional) indicating the item's role, if set. Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `close`, `minimize`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`
|
|
|
|
|
|
#### `menuItem.accelerator`
|
|
|
|