Skip to content

Commit

Permalink
Merge pull request #3 from oven/cut-n-paste
Browse files Browse the repository at this point in the history
Add cut-n-paste-support on OS X.
  • Loading branch information
gm-vm committed Aug 4, 2022
2 parents eff1daf + 72f7cc6 commit 9f9bd6d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions openfortivpn-webview-electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ app.whenReady().then(() => {
click: () => { session.defaultSession.clearStorageData() },
},
]
},{
label: "Edit",
submenu: [
{ label: "Undo", accelerator: "CmdOrCtrl+Z", role: "undo" },
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", role: "redo" },
{ type: "separator" },
{ label: "Cut", accelerator: "CmdOrCtrl+X", role: "cut" },
{ label: "Copy", accelerator: "CmdOrCtrl+C", role: "copy" },
{ label: "Paste", accelerator: "CmdOrCtrl+V", role: "paste" },
{ label: "Select All", accelerator: "CmdOrCtrl+A", role: "selectAll" },
]
}]);
Menu.setApplicationMenu(menu);

Expand Down

0 comments on commit 9f9bd6d

Please sign in to comment.