I am not able to disable or change the working of these keyboard shortcuts in Electron.
ctrl+alt+delete and alt+F4
Below I have mentioned the 2 different codes for make this change.
const { app, BrowserWindow, globalShortcut, path, url} = require('electron')
app.on('ready', () => {
const ret = globalShortcut.register('alt+f4', function () {
win.show()
})
})
{
role: 'help',
submenu: [
{
label: 'Reload',
accelerator: 'Alt + F4',
click: function (item, focusedWindow) {
focusedWindow.reload();
}
}
]
}