-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
I've created a custom menu - but the items don't fire for some reason. First I tried creating with the inbuilt generator (via the GUI):
[{
"name": "Choose",
"separator": true
}, {
"action": "name('Say Hello', type('hello'))",
"icon": "system/keyboard",
"id": "item2",
"name": "Say Hello"
}, {
"action": "name('Say Goodbye', type('goodbye'))",
"icon": "system/keyboard",
"id": "item3",
"name": "Say Goodbye"
}, {
"action": "name('Test', button(KEY_T))",
"icon": "weapons/baseball-bat",
"id": "item4",
"name": "Test"
}]
Then I noticed that the default menus don't wrap the action in a name clause. So I hand build one:
[{
"name": "Choose",
"separator": true
}, {
"action": "type('hello')",
"icon": "system/keyboard",
"id": "item2",
"name": "Say Hello"
}, {
"action": "type('goodbye')",
"icon": "system/keyboard",
"id": "item3",
"name": "Say Goodbye"
}, {
"action": "button(KEY_T)",
"icon": "weapons/baseball-bat",
"id": "item4",
"name": "Test"
}]
In either case, nothing outputs when I make a menu selection.
Metadata
Metadata
Assignees
Labels
No labels