-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.js
More file actions
44 lines (40 loc) · 876 Bytes
/
menu.js
File metadata and controls
44 lines (40 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
mainWindow = null;
const template = [
{
label: 'Changelist',
submenu:[{
label: 'Mark Source Text',
accelerator: 'Alt+1',
click:() => {mainWindow.webContents.send("markSourceText");}
},
{
label: 'Mark Target Text',
accelerator: 'Alt+2',
click:() => {mainWindow.webContents.send("markTargetText");}
}
]
},
{
label: 'PDFs',
submenu: [
{
label: 'Sync Page',
accelerator: 'Alt+S',
click:() => {mainWindow.webContents.send("syncPage");}
}
]
},
{
label: 'Help',
submenu: [
{
label: 'Ask Malte :-)'
}
]
}
];
module.exports = function(mainWindow){
this.mainWindow = mainWindow;
return template;
};