From afa2dd5ce51cb391b242d172a4d880dbf8f9451c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 5 Jun 2017 10:03:25 -0700 Subject: [PATCH] Minor updates to focus note --- docs/api/web-contents.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index f90cfc6eb53c..5eed941be27b 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1135,7 +1135,8 @@ Disable device emulation enabled by `webContents.enableDeviceEmulation`. `numLock`, `left`, `right`. Sends an input `event` to the page. -'Browser Window' needs to be focused for `sendInputEvent()` to work. +**Note:** The `BrowserWindow` containing the contents needs to be focused for +`sendInputEvent()` to work. For keyboard events, the `event` object also have following properties: