From 8b34eb338b2ddc74b821077ee15145941755e808 Mon Sep 17 00:00:00 2001 From: Liunkae Date: Thu, 15 Dec 2016 22:52:31 -0600 Subject: [PATCH] Add Paste Without Formatting to context menu (#6126) Fixes #5822 --- js/contextMenus.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/contextMenus.js b/js/contextMenus.js index 4251cbbfbee..81dae0df96d 100644 --- a/js/contextMenus.js +++ b/js/contextMenus.js @@ -640,6 +640,13 @@ function getEditableItems (selection, editFlags) { accelerator: 'CmdOrCtrl+V', enabled: hasClipboard, role: 'paste' + }, { + label: locale.translation('pasteWithoutFormatting'), + accelerator: 'Shift+CmdOrCtrl+V', + enabled: hasClipboard, + click: function (item, focusedWindow) { + focusedWindow.webContents.pasteAndMatchStyle() + } }) } return menuUtil.sanitizeTemplateItems(template)