Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Add Paste Without Formatting to context menu (#6126)
Browse files Browse the repository at this point in the history
Fixes #5822
  • Loading branch information
Liunkae authored and cezaraugusto committed Dec 16, 2016
1 parent b8344b5 commit 8b34eb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b34eb3

Please sign in to comment.