Disable NW.js dev tools shortcut on Mac as it may crash the app. #6183

This commit is contained in:
Aditya Toshniwal
2023-04-28 19:01:03 +05:30
parent 1ccdbf27e2
commit edb74a0839
2 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,11 @@ if (fs.existsSync('dev_config.json')) {
// This functions is used to start the pgAdmin4 server by spawning a
// separate process.
function startDesktopMode() {
// Disable dev tools shortcut
if (platform() == 'darwin') {
nw.App.registerGlobalHotKey(new nw.Shortcut({key: 'Command+Shift+C'}), ()=>{});
}
// Return if pgAdmin server process is already spawned
// Added check for debugging purpose.
if (pgadminServerProcess != null)