Skip to content

Commit

Permalink
Merge pull request #133 from juanky201271/dev_disable_web_window_shor…
Browse files Browse the repository at this point in the history
…tcuts

Avoiding that Control + F4 closes the window
  • Loading branch information
juanky201271 authored Oct 19, 2023
2 parents 577b904 + 200561b commit 44ca498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ function createWindow() {
},
});

mainWindow.webContents.setIgnoreMenuShortcuts(true);

// Load from localhost if in development
// Otherwise load index.html file
mainWindow.loadURL(isDev ? "http://localhost:3000" : `file://${path.join(__dirname, "../build/index.html")}`);
Expand Down

0 comments on commit 44ca498

Please sign in to comment.