Skip to content

Commit

Permalink
Fix copy and pasting shortcuts not working in MacOS (#101)
Browse files Browse the repository at this point in the history
* Attempt to fix pasting in MacOS

* Rename Publish job to Upload artifacts.

I freak out when I see something that's unfinished is "Publishing" D:
  • Loading branch information
vinceau authored Nov 26, 2020
1 parent 232dcba commit 3b22145
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
cp ./release/*.yml ./artifact
env:
USE_HARD_LINKS: false
- name: Publish
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v2-preview
with:
Expand Down
40 changes: 39 additions & 1 deletion app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,44 @@ export default class MenuBuilder {
},
],
};
const subMenuEdit = {
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",
},
],
};
const subMenuViewDev = {
label: 'View',
submenu: [
Expand Down Expand Up @@ -92,7 +130,7 @@ export default class MenuBuilder {
};

const menus =
process.env.NODE_ENV === 'development' ? [subMenuAbout, subMenuViewDev, subMenuHelp] : [subMenuAbout, subMenuHelp];
process.env.NODE_ENV === 'development' ? [subMenuAbout, subMenuEdit, subMenuViewDev, subMenuHelp] : [subMenuAbout, subMenuEdit, subMenuHelp];

return menus;
}
Expand Down

0 comments on commit 3b22145

Please sign in to comment.