Use default labels and accelerators

This commit is contained in:
Kevin Sawicki 2016-06-22 10:46:17 -07:00
parent 13a6d32ee9
commit 566a407b36

View file

@ -52,46 +52,30 @@ app.once('ready', () => {
label: 'Edit', label: 'Edit',
submenu: [ submenu: [
{ {
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
role: 'undo' role: 'undo'
}, },
{ {
label: 'Redo',
accelerator: 'Shift+CmdOrCtrl+Z',
role: 'redo' role: 'redo'
}, },
{ {
type: 'separator' type: 'separator'
}, },
{ {
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
role: 'cut' role: 'cut'
}, },
{ {
label: 'Copy',
accelerator: 'CmdOrCtrl+C',
role: 'copy' role: 'copy'
}, },
{ {
label: 'Paste',
accelerator: 'CmdOrCtrl+V',
role: 'paste' role: 'paste'
}, },
{ {
label: 'Paste and Match Style',
accelerator: 'Shift+Command+V',
role: 'pasteandmatchstyle' role: 'pasteandmatchstyle'
}, },
{ {
label: 'Delete',
accelerator: 'Delete',
role: 'delete' role: 'delete'
}, },
{ {
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
role: 'selectall' role: 'selectall'
} }
] ]
@ -107,9 +91,7 @@ app.once('ready', () => {
} }
}, },
{ {
label: 'Toggle Full Screen',
role: 'togglefullscreen', role: 'togglefullscreen',
accelerator: process.platform === 'darwin' ? 'Ctrl+Command+F' : 'F11'
}, },
{ {
label: 'Toggle Developer Tools', label: 'Toggle Developer Tools',
@ -125,13 +107,9 @@ app.once('ready', () => {
role: 'window', role: 'window',
submenu: [ submenu: [
{ {
label: 'Minimize',
accelerator: 'CmdOrCtrl+M',
role: 'minimize' role: 'minimize'
}, },
{ {
label: 'Close',
accelerator: 'CmdOrCtrl+W',
role: 'close' role: 'close'
} }
] ]