I've created a global shortcut where Ctrl+Shift+I opens a detached DevTools window. However, when the DevTools window is minimised, pressing Ctrl+Shift+I does not do anything.
I want to be able to restore/unminimise the minimised DevTools window by using the Ctrl+Shift+I shortcut. The .focus method usually works for things like this but doesn't in this case. I've tried using 'undocked' mode for the window too.
The code I have to implement the current behaviour is this:
if (focussedWindow.webContents.isDevToolsOpened()) {
if (focussedWindow.webContents.devToolsWebContents !== null) {
focussedWindow.webContents.devToolsWebContents.focus();
}
}
I should also add that the DevTools window does refocus if it is behind other windows, just not when minimised.
I'm using Electron 9.3.0 on Windows 10 Pro.