1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #2601 from yougotwill/zoom_controls

Zoom Controls
This commit is contained in:
Junyoung Choi (Sai)
2018-11-25 15:37:29 +09:00
committed by GitHub
2 changed files with 52 additions and 3 deletions

View File

@@ -310,11 +310,25 @@ const view = {
type: 'separator'
},
{
role: 'zoomin',
accelerator: macOS ? 'CommandOrControl+Plus' : 'Control+='
label: 'Actual Size',
accelerator: macOS ? 'CommandOrControl+0' : 'Control+0',
click () {
mainWindow.webContents.send('status:zoomreset')
}
},
{
role: 'zoomout'
label: 'Zoom In',
accelerator: macOS ? 'CommandOrControl+=' : 'Control+=',
click () {
mainWindow.webContents.send('status:zoomin')
}
},
{
label: 'Zoom Out',
accelerator: macOS ? 'CommandOrControl+-' : 'Control+-',
click () {
mainWindow.webContents.send('status:zoomout')
}
}
]
}