feat: emit devtools-open-url
event for DevTools link selection (#36774)
* feat: emit event for DevTools link selection * chore: devtools-open-in-new-tab -> devtools-open-url
This commit is contained in:
parent
8d008c977d
commit
7d46d3ec9d
7 changed files with 27 additions and 1 deletions
|
@ -492,6 +492,14 @@ The `focus` and `blur` events of `WebContents` should only be used to detect
|
|||
focus change between different `WebContents` and `BrowserView` in the same
|
||||
window.
|
||||
|
||||
#### Event: 'devtools-open-url'
|
||||
|
||||
Returns:
|
||||
|
||||
* `url` string - URL of the link that was clicked or selected.
|
||||
|
||||
Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for a link in its context menu.
|
||||
|
||||
#### Event: 'devtools-opened'
|
||||
|
||||
Emitted when DevTools is opened.
|
||||
|
|
|
@ -981,6 +981,14 @@ Returns:
|
|||
|
||||
Emitted when mouse moves over a link or the keyboard moves the focus to a link.
|
||||
|
||||
### Event: 'devtools-open-url'
|
||||
|
||||
Returns:
|
||||
|
||||
* `url` string - URL of the link that was clicked or selected.
|
||||
|
||||
Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for a link in its context menu.
|
||||
|
||||
### Event: 'devtools-opened'
|
||||
|
||||
Emitted when DevTools is opened.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue