fix(menus): Adopt new pasteandmatchstyle menu role

This commit is contained in:
Ben Gotow 2016-07-18 16:57:31 -07:00
parent c9244d5163
commit 0aeebbf380

View file

@ -409,9 +409,7 @@ class Contenteditable extends React.Component
menu.append(new MenuItem({ label: 'Cut', role: 'cut'}))
menu.append(new MenuItem({ label: 'Copy', role: 'copy'}))
menu.append(new MenuItem({ label: 'Paste', role: 'paste'}))
menu.append(new MenuItem({ label: 'Paste and Match Style', click: =>
NylasEnv.getCurrentWindow().webContents.pasteAndMatchStyle()
}))
menu.append(new MenuItem({ label: 'Paste and Match Style', role: 'pasteandmatchstyle'}))
menu.popup(remote.getCurrentWindow())