Merge pull request #9767 from electron/document-wc-focus

Document webContents.focus()
This commit is contained in:
Kevin Sawicki 2017-06-15 10:25:17 -07:00 committed by GitHub
commit 1602c07fac

View file

@ -611,6 +611,10 @@ Returns `String` - The title of the current web page.
Returns `Boolean` - Whether the web page is destroyed. Returns `Boolean` - Whether the web page is destroyed.
#### `contents.focus()`
Focuses the web page.
#### `contents.isFocused()` #### `contents.isFocused()`
Returns `Boolean` - Whether the web page is focused. Returns `Boolean` - Whether the web page is focused.