mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Merge pull request #9767 from electron/document-wc-focus
Document webContents.focus()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user