Skip to content

Commit

Permalink
Merge pull request #5870 from danhp/missing-roles
Browse files Browse the repository at this point in the history
Add 'delete' and 'pasteandmatchstyle' roles
  • Loading branch information
zcbenz committed Jun 6, 2016
2 parents 08f5322 + bd1eae8 commit ec691a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion atom/browser/ui/cocoa/atom_menu_controller.mm
Expand Up @@ -33,7 +33,7 @@
{ @selector(copy:), "copy" },
{ @selector(paste:), "paste" },
{ @selector(delete:), "delete" },
{ @selector(pasteAndMatchStyle:), "paste-and-match-style" },
{ @selector(pasteAndMatchStyle:), "pasteandmatchstyle" },
{ @selector(selectAll:), "selectall" },
{ @selector(performMiniaturize:), "minimize" },
{ @selector(performClose:), "close" },
Expand Down
2 changes: 2 additions & 0 deletions docs/api/menu-item.md
Expand Up @@ -46,7 +46,9 @@ The `role` property can have following values:
* `cut`
* `copy`
* `paste`
* `pasteandmatchstyle`
* `selectall`
* `delete`
* `minimize` - Minimize current window
* `close` - Close current window

Expand Down
1 change: 1 addition & 0 deletions lib/browser/api/menu-item.js
Expand Up @@ -11,6 +11,7 @@ rolesMap = {
cut: 'cut',
copy: 'copy',
paste: 'paste',
pasteandmatchstyle: 'pasteAndMatchStyle',
selectall: 'selectAll',
minimize: 'minimize',
close: 'close',
Expand Down

0 comments on commit ec691a3

Please sign in to comment.