From 6c6506e5aa735a6dd81d5418a568605ddae2b069 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 16 Feb 2017 11:18:13 -0800 Subject: [PATCH] Document menu.closePopup --- docs/api/menu.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 6969c44..466d226 100644 --- a/docs/api/menu.md +++ b/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 -- 2.7.4