Browse Source

Document menu.closePopup

Kevin Sawicki 8 years ago
parent
commit
6c6506e5aa
1 changed files with 7 additions and 2 deletions
  1. 7 2
      docs/api/menu.md

+ 7 - 2
docs/api/menu.md

@@ -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