forked from camunda/camunda-modeler-token-simulation-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.js
26 lines (25 loc) · 756 Bytes
/
menu.js
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
'use strict';
module.exports = function (electronApp, menuState) {
return [{
label: 'Toggle Token Simulation',
accelerator: 't',
enabled: () => menuState.bpmn && menuState.inactiveInput,
action: function () {
electronApp.emit('menu:action', 'toggleTokenSimulation');
}
}, {
label: 'Play/Pause Simulation',
accelerator: 'Space',
enabled: () => menuState.bpmn && menuState.inactiveInput,
action: function () {
electronApp.emit('menu:action', 'togglePauseTokenSimulation');
}
}, {
label: 'Reset Simulation',
accelerator: 'r',
enabled: () => menuState.bpmn && menuState.inactiveInput,
action: function () {
electronApp.emit('menu:action', 'resetTokenSimulation');
}
}];
};