|
@@ -54,8 +54,7 @@ The `menu` object has the following instance methods:
|
|
|
|
|
|
#### `menu.popup([browserWindow, options])`
|
|
|
|
|
|
-* `browserWindow` BrowserWindow (optional) - Default is
|
|
|
- `BrowserWindow.getFocusedWindow()`.
|
|
|
+* `browserWindow` BrowserWindow (optional) - Default is the focused window.
|
|
|
* `options` Object (optional)
|
|
|
* `x` Number (optional) - Default is the current mouse cursor position.
|
|
|
* `y` Number (**required** if `x` is used) - Default is the current mouse
|
|
@@ -69,6 +68,12 @@ The `menu` object has the following instance methods:
|
|
|
|
|
|
Pops up this menu as a context menu in the `browserWindow`.
|
|
|
|
|
|
+#### `menu.closePopup([browserWindow])`
|
|
|
+
|
|
|
+* `browserWindow` BrowserWindow (optional) - Default is the focused window.
|
|
|
+
|
|
|
+Closes the context menu in the `browserWindow`.
|
|
|
+
|
|
|
#### `menu.append(menuItem)`
|
|
|
|
|
|
* `menuItem` MenuItem
|