-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.ts
40 lines (35 loc) · 936 Bytes
/
constant.ts
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
const supportedInputFormat = [
'alfred.workflow.trigger.hotkey',
'alfred.workflow.input.keyword',
'alfred.workflow.input.scriptfilter'
];
const supportedActionFormat = [
'alfred.workflow.action.openfile',
'alfred.workflow.action.openurl',
'alfred.workflow.action.script',
'alfred.workflow.input.keyword',
'alfred.workflow.input.scriptfilter',
'alfred.workflow.output.clipboard',
'alfred.workflow.output.notification',
'alfred.workflow.utility.argument',
'alfred.workflow.utility.conditional',
'alfred.workflow.utility.filter',
];
const notSupported = () => {
return `Not supported`;
};
// To do:: The current method cannot handle more than two modifiers being pressed at the same time
const modifierMap = {
0: 'normal',
131072: 'shift',
262144: 'ctrl',
524288: 'opt',
1048576: 'cmd',
8388608: 'fn'
};
export {
notSupported,
modifierMap,
supportedActionFormat,
supportedInputFormat
}