Merge pull request #5870 from danhp/missing-roles

Add 'delete' and 'pasteandmatchstyle' roles
This commit is contained in:
Cheng Zhao 2016-06-06 06:16:53 +00:00 committed by GitHub
commit ec691a3a64
3 changed files with 4 additions and 1 deletions

View file

@ -33,7 +33,7 @@ Role kRolesMap[] = {
{ @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" },

View file

@ -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

View file

@ -11,6 +11,7 @@ rolesMap = {
cut: 'cut',
copy: 'copy',
paste: 'paste',
pasteandmatchstyle: 'pasteAndMatchStyle',
selectall: 'selectAll',
minimize: 'minimize',
close: 'close',