mirror of
https://github.com/mmvanheusden/SteamDepotDownloaderGUI.git
synced 2026-02-04 05:31:19 +01:00
feat: always open devtools in external window
This commit is contained in:
@@ -331,6 +331,14 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||
})
|
||||
})
|
||||
|
||||
// make sure devtools open in external window.
|
||||
window.addEventListener("keydown", (e) => {
|
||||
e.preventDefault()
|
||||
if (e.key === "F12" || (e.ctrlKey && e.shiftKey && e.key === "I")) {
|
||||
ipcRenderer.send("open-devtools")
|
||||
}
|
||||
})
|
||||
|
||||
ipcRenderer.on("file", (event, file) => {
|
||||
console.log("path selected by user: " + file)
|
||||
document.getElementById("checkpath").ariaDisabled = false // Makes the check button active
|
||||
|
||||
Reference in New Issue
Block a user