diff --git a/atom/browser/ui/cocoa/atom_menu_controller.mm b/atom/browser/ui/cocoa/atom_menu_controller.mm index 24098914b7c..642721e6bd3 100644 --- a/atom/browser/ui/cocoa/atom_menu_controller.mm +++ b/atom/browser/ui/cocoa/atom_menu_controller.mm @@ -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" }, diff --git a/docs/api/menu-item.md b/docs/api/menu-item.md index b67032271e6..c12b14cc0bc 100644 --- a/docs/api/menu-item.md +++ b/docs/api/menu-item.md @@ -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 diff --git a/lib/browser/api/menu-item.js b/lib/browser/api/menu-item.js index f50e0ed84e5..4d2737d0fa9 100644 --- a/lib/browser/api/menu-item.js +++ b/lib/browser/api/menu-item.js @@ -11,6 +11,7 @@ rolesMap = { cut: 'cut', copy: 'copy', paste: 'paste', + pasteandmatchstyle: 'pasteAndMatchStyle', selectall: 'selectAll', minimize: 'minimize', close: 'close',