Merge pull request #6480 from electron/webcontents-focus
Execute role-based menu items on focused web contents
This commit is contained in:
commit
21a2feaf23
9 changed files with 66 additions and 16 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue