From 973945a8e3a79015f7a9619f088f0e4b1da5c3a4 Mon Sep 17 00:00:00 2001 From: Rajat Date: Mon, 29 May 2017 20:10:32 +0530 Subject: [PATCH] Docs: Add `BrowserWindow` needs to be focused for `webContents.sendInputEvent()` to work. --- docs/api/web-contents.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 2163678d82b..8d1b4caa36c 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1135,6 +1135,7 @@ Disable device emulation enabled by `webContents.enableDeviceEmulation`. `numLock`, `left`, `right`. Sends an input `event` to the page. +'BrowserWindow` needs to be focused for `sendInputEvent()` to work. For keyboard events, the `event` object also have following properties: