Maybe fixed #212?
authorRemixDev <deezloaderremix@gmail.com>
Sun, 10 Mar 2019 17:46:17 +0000 (18:46 +0100)
committerRemixDev <deezloaderremix@gmail.com>
Sun, 10 Mar 2019 17:46:17 +0000 (18:46 +0100)
idk, I don't have a mac, I'm poor

app/main.js

index 7b1eb255a4adc7c8219e81c2b4f2aab76ed0a52d..dce27018f46122670910103a0f197ad590c5075b 100644 (file)
@@ -66,6 +66,25 @@ function loadSettings(){
        }
 }
 
+var template = [{
+    label: "Application",
+    submenu: [
+        { label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
+    ]}, {
+    label: "Edit",
+    submenu: [
+        { label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
+        { label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
+        { type: "separator" },
+        { label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
+        { label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
+        { label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
+        { label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
+    ]}
+]
+
+Menu.setApplicationMenu(Menu.buildFromTemplate(template))
+
 function createTray(){
        tray = new Tray(trayIcon);
        const contextMenu = Menu.buildFromTemplate([