by default electron js has to show me the top menu when I touch the alt key, but I want to disable it but nothing works for me, I don’t understand what to do
Here is my code:
app.whenReady().then(() => {
createWindow();
mainWindow = getMainWindow();
autoUpdater.checkForUpdates();
mainWindow.webContents.send('update-info', `Checking for updates. Current version ${app.getVersion()}`);
globalShortcut.register('F11', () => {
console.log('F11 key is disabled');
});
globalShortcut.register('CommandOrControl+Alt', () => {
})
});
My expectation is that when I touch the alt key the menu will no longer appear