mirror of
https://github.com/MutableLoss/6502SimDesktop.git
synced 2024-11-25 18:31:31 +00:00
custom menus
This commit is contained in:
parent
282ee094d3
commit
3dfe4f2247
49
app/electron/menu.js
Normal file
49
app/electron/menu.js
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
const OSXtemplate = [
|
||||||
|
{
|
||||||
|
label: "Application",
|
||||||
|
submenu: [
|
||||||
|
{ label: "About 6502Desktop", selector: "orderFrontStandardAboutPanel:" },
|
||||||
|
{ label: "Quit", accelerator: "Command+Q", click: function () { app.quit(); } }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Edit",
|
||||||
|
submenu: [
|
||||||
|
{ label: "Undo", accelerator: "Cmd+Z", selector: "undo:" },
|
||||||
|
{ label: "Redo", accelerator: "Shift+Cmd+Z", selector: "redo:" },
|
||||||
|
{ label: "Cut", accelerator: "Cmd+X", selector: "cut:" },
|
||||||
|
{ label: "Copy", accelerator: "Cmd+C", selector: "copy:" },
|
||||||
|
{ label: "Paste", accelerator: "Cmd+V", selector: "paste:" },
|
||||||
|
{ label: "Select All", accelerator: "Cmd+A", selector: "selectAll:" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
const PCtemplate = [
|
||||||
|
{
|
||||||
|
label: "File",
|
||||||
|
submenu: [
|
||||||
|
{ label: "Quit", accelerator: "Alt+F4", click: function () { app.quit(); } }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Edit",
|
||||||
|
submenu: [
|
||||||
|
{ label: "Undo", accelerator: "Ctrl+Z", selector: "undo:" },
|
||||||
|
{ label: "Redo", accelerator: "Shift+Ctrl+Z", selector: "redo:" },
|
||||||
|
{ label: "Cut", accelerator: "Ctrl+X", selector: "cut:" },
|
||||||
|
{ label: "Copy", accelerator: "Ctrl+C", selector: "copy:" },
|
||||||
|
{ label: "Paste", accelerator: "Ctrl+V", selector: "paste:" },
|
||||||
|
{ label: "Select All", accelerator: "Ctrl+A", selector: "selectAll:" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Help",
|
||||||
|
submenu: [
|
||||||
|
{ label: "About 6502Desktop", selector: "orderFrontStandardAboutPanel:" },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
module.exports.OSXtemplate = OSXtemplate;
|
||||||
|
module.exports.PCtemplate = PCtemplate;
|
Loading…
Reference in New Issue
Block a user