Skip to content

Commit

Permalink
Support for Undo, Redo, Cut, Copy & Paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
kraffslol committed Jun 2, 2016
1 parent 42e0965 commit 9c18346
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,40 @@ app.on('ready', () => {
app.quit();
},
}],
}, {
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: [{
Expand Down

0 comments on commit 9c18346

Please sign in to comment.