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

View File

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