Merge pull request #6480 from electron/webcontents-focus

Execute role-based menu items on focused web contents
This commit is contained in:
Cheng Zhao 2016-07-14 12:47:07 +09:00 committed by GitHub
commit 21a2feaf23
9 changed files with 66 additions and 16 deletions

View file

@ -463,6 +463,10 @@ let currentURL = win.webContents.getURL();
Returns the title of the current web page.
### `webContents.isFocused()`
Returns a Boolean, whether the web page is focused.
### `webContents.isLoading()`
Returns whether web page is still loading resources.