Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Add menus to enable basic edit actions on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Sep 6, 2015
1 parent 225c2af commit b9bc18a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/menu-builder.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,32 @@ class MenuBuilder
{
label: 'Nocturn',
submenu: [
{
label: 'Open GitHub',
click: ->
require('shell').openExternal('https://github.com/k0kubun/Nocturn')
},
{ type: "separator" },
{
label: 'Quit Nocturn',
accelerator: 'Command+Q',
click: ->
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:" },
],
},
]

# For debug
Expand Down

0 comments on commit b9bc18a

Please sign in to comment.