Merge pull request #4712 from atom/mq-map-selectors-to-roles
Map missing selectors to roles
This commit is contained in:
commit
1da75f5c18
2 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,8 @@ rolesMap = {
|
|||
paste: 'paste',
|
||||
selectall: 'selectAll',
|
||||
minimize: 'minimize',
|
||||
close: 'close'
|
||||
close: 'close',
|
||||
delete: 'delete'
|
||||
};
|
||||
|
||||
// Maps methods that should be called directly on the BrowserWindow instance
|
||||
|
|
|
@ -32,9 +32,12 @@ Role kRolesMap[] = {
|
|||
{ @selector(cut:), "cut" },
|
||||
{ @selector(copy:), "copy" },
|
||||
{ @selector(paste:), "paste" },
|
||||
{ @selector(delete:), "delete" },
|
||||
{ @selector(pasteAndMatchStyle:), "paste-and-match-style" },
|
||||
{ @selector(selectAll:), "selectall" },
|
||||
{ @selector(performMiniaturize:), "minimize" },
|
||||
{ @selector(performClose:), "close" },
|
||||
{ @selector(performZoom:), "zoom" },
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in a new issue