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

Commit

Permalink
Possible fix for copy text not working
Browse files Browse the repository at this point in the history
Fix #1060

Auditors: @diracdeltas
  • Loading branch information
bbondy committed Mar 11, 2016
1 parent c6a180b commit bf04711
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,25 +173,35 @@ const init = (settingsState, args) => {
const editSubmenu = [{
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
role: 'undo'
click: function (item, focusedWindow) {
focusedWindow.webContents.undo()
}
}, {
label: 'Redo',
accelerator: 'Shift+CmdOrCtrl+Z',
role: 'redo'
click: function (item, focusedWindow) {
focusedWindow.webContents.redo()
}
},
CommonMenu.separatorMenuItem,
{
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
role: 'cut'
click: function (item, focusedWindow) {
focusedWindow.webContents.cut()
}
}, {
label: 'Copy',
accelerator: 'CmdOrCtrl+C',
role: 'copy'
click: function (item, focusedWindow) {
focusedWindow.webContents.copy()
}
}, {
label: 'Paste',
accelerator: 'CmdOrCtrl+V',
role: 'paste'
click: function (item, focusedWindow) {
focusedWindow.webContents.paste()
}
}, {
label: 'Paste without formatting',
accelerator: 'Shift+CmdOrCtrl+V',
Expand All @@ -209,7 +219,9 @@ const init = (settingsState, args) => {
}, {
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
role: 'selectall'
click: function (item, focusedWindow) {
focusedWindow.webContents.selectAll()
}
},
CommonMenu.separatorMenuItem,
CommonMenu.findOnPageMenuItem,
Expand Down

1 comment on commit bf04711

@diracdeltas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work so far

Please sign in to comment.