mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add macOS specific speaking roles for MenuItem
This commit is contained in:
@@ -133,6 +133,23 @@ if (process.platform === 'darwin') {
|
||||
}
|
||||
]
|
||||
})
|
||||
// Edit menu.
|
||||
template[1].submenu.push(
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Speech',
|
||||
submenu: [
|
||||
{
|
||||
role: 'startspeaking'
|
||||
},
|
||||
{
|
||||
role: 'stopspeaking'
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
// Window menu.
|
||||
template[3].submenu = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user