Skip to content

Commit 7562e9a

Browse files
committed
fix pasting
1 parent a0a0e81 commit 7562e9a

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,28 @@ app.on('activate', () => {
7575

7676
app.on('ready', () => {
7777
mainWindow = createMainWindow();
78+
79+
var template = [{
80+
label: "Application",
81+
submenu: [
82+
{ label: "About Application", selector: "orderFrontStandardAboutPanel:" },
83+
{ type: "separator" },
84+
{ label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
85+
]}, {
86+
label: "Edit",
87+
submenu: [
88+
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
89+
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
90+
{ type: "separator" },
91+
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
92+
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
93+
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
94+
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
95+
]}
96+
];
97+
98+
Menu.setApplicationMenu(Menu.buildFromTemplate(template));
99+
78100
autoUpdater.checkForUpdatesAndNotify();
79101
});
80102

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-snippets",
33
"productName": "CodeSnippets",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"description": "A lightweight app to keep track of code snippets",
66
"license": "MIT",
77
"repository": "aaronduino/snippet-manager",

0 commit comments

Comments
 (0)