Merge pull request #4712 from atom/mq-map-selectors-to-roles

Map missing selectors to roles
This commit is contained in:
Cheng Zhao 2016-03-08 19:44:26 +09:00
commit 1da75f5c18
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,8 @@ rolesMap = {
paste: 'paste', paste: 'paste',
selectall: 'selectAll', selectall: 'selectAll',
minimize: 'minimize', minimize: 'minimize',
close: 'close' close: 'close',
delete: 'delete'
}; };
// Maps methods that should be called directly on the BrowserWindow instance // Maps methods that should be called directly on the BrowserWindow instance

View file

@ -32,9 +32,12 @@ Role kRolesMap[] = {
{ @selector(cut:), "cut" }, { @selector(cut:), "cut" },
{ @selector(copy:), "copy" }, { @selector(copy:), "copy" },
{ @selector(paste:), "paste" }, { @selector(paste:), "paste" },
{ @selector(delete:), "delete" },
{ @selector(pasteAndMatchStyle:), "paste-and-match-style" },
{ @selector(selectAll:), "selectall" }, { @selector(selectAll:), "selectall" },
{ @selector(performMiniaturize:), "minimize" }, { @selector(performMiniaturize:), "minimize" },
{ @selector(performClose:), "close" }, { @selector(performClose:), "close" },
{ @selector(performZoom:), "zoom" },
}; };
} // namespace } // namespace