We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5ca09 commit 2791e00Copy full SHA for 2791e00
backend/menu.js
@@ -55,8 +55,14 @@ module.exports = function registerMenu(win, state = {}) {
55
{
56
label: 'File',
57
submenu: [
58
+ { label: 'New',
59
+ accelerator: shortcuts.menu.NEW,
60
+ enabled: state.view === 'editor',
61
+ click: () => win.webContents.send('shortcut-cmd', shortcuts.global.NEW)
62
+ },
63
{ label: 'Save',
64
accelerator: shortcuts.menu.SAVE,
65
66
click: () => win.webContents.send('shortcut-cmd', shortcuts.global.SAVE)
67
},
68
isMac ? { role: 'close' } : { role: 'quit' }
0 commit comments