Skip to content

Instantly share code, notes, and snippets.

@deepak1556 deepak1556/main.js
Created Dec 12, 2019

Embed
What would you like to do?
Super key menu labelling issue on linux
const {app, BrowserWindow, Menu} = require('electron')
app.on('ready', function() {
var mainWindow = new BrowserWindow({});
var menuTemplate = [
{
label: 'View',
submenu: [
{
label: 'Super Key example',
accelerator: 'Ctrl+Super+A',
click: function() {
console.log("Command+Super+A event");
},
},
{
label: 'Quit',
accelerator: 'Command+Q',
click: function() { app.quit(); }
},
],
},
];
Menu.setApplicationMenu(Menu.buildFromTemplate(menuTemplate));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.