We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa36d2e commit e02cf59Copy full SHA for e02cf59
lib/browser/api/menu-item-roles.js
@@ -138,7 +138,11 @@ exports.execute = (role, focusedWindow) => {
138
if (webContentsMethod && focusedWindow != null) {
139
const {webContents} = focusedWindow
140
if (webContents) {
141
- webContents[webContentsMethod]()
+ if (webContents.isDevToolsFocused()) {
142
+ webContents.devToolsWebContents[webContentsMethod]()
143
+ } else {
144
+ webContents[webContentsMethod]()
145
+ }
146
}
147
return true
148
0 commit comments