Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 107 lines (105 sloc) 2.01 KB
const {appUpdater} = require('./autoupdater');
module.exports = [
{
label: 'Paper',
submenu: [
{
label: 'About Paper',
selector: 'orderFrontStandardAboutPanel:'
},
{
label: 'Check for Update',
click() {
appUpdater('manual');
}
},
{ type: 'separator' },
{
label: 'Hide Paper',
accelerator: 'Command+H',
selector: 'hide:'
},
{
label: 'Hide Others',
accelerator: 'Command+Shift+H',
selector: 'hideOtherApplications:'
},
{
label: 'Show All',
selector: 'unhideAllApplications:'
},
{ type: 'separator' },
{
label: 'Quit',
accelerator: 'Command+Q',
selector: 'terminate:'
},
]
},
{
label: 'Edit',
submenu: [
{
label: 'Undo',
accelerator: 'Command+Z',
selector: 'undo:'
},
{
label: 'Redo',
accelerator: 'Shift+Command+Z',
selector: 'redo:'
},
{ type: 'separator' },
{
label: 'Cut',
accelerator: 'Command+X',
selector: 'cut:'
},
{
label: 'Copy',
accelerator: 'Command+C',
selector: 'copy:'
},
{
label: 'Paste',
accelerator: 'Command+V',
selector: 'paste:'
},
{
label: 'Select All',
accelerator: 'Command+A',
selector: 'selectAll:'
}
]
},
{
label: 'View',
submenu: [
{
label: 'Reload',
accelerator: 'Command+R',
click: () => { win.reload(); }
}
]
},
{
label: 'Window',
submenu: [
{
label: 'Minimize',
accelerator: 'Command+M',
selector: 'performMiniaturize:'
},
{
label: 'Close',
accelerator: 'Command+W',
selector: 'hide:'
},
{ type: 'separator' },
{
label: 'Bring All to Front',
selector: 'arrangeInFront:'
}
]
}
];