Add macOS specific speaking roles for MenuItem

This commit is contained in:
Milan Burda 2016-08-08 00:02:32 +02:00
parent 5eeadb0ad4
commit edc1a9614c
5 changed files with 43 additions and 0 deletions

View file

@ -217,6 +217,22 @@ app.once('ready', () => {
}
]
})
template[1].submenu.push(
{
type: 'separator'
},
{
label: 'Speech',
submenu: [
{
role: 'startspeaking'
},
{
role: 'stopspeaking'
}
]
}
)
template[3].submenu = [
{
role: 'close'