mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
remove redundant conditions of macOS in main-menu
This commit is contained in:
committed by
Junyoung Choi
parent
2882667e94
commit
6d455fc286
@@ -86,21 +86,21 @@ const file = {
|
||||
},
|
||||
{
|
||||
label: 'Focus Note',
|
||||
accelerator: macOS ? 'Command+E' : 'Control+E',
|
||||
accelerator: 'CommandOrControl+E',
|
||||
click () {
|
||||
mainWindow.webContents.send('detail:focus')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Delete Note',
|
||||
accelerator: macOS ? 'Command+Shift+Backspace' : 'Control+Shift+Backspace',
|
||||
accelerator: 'CommandOrControl+Shift+Backspace',
|
||||
click () {
|
||||
mainWindow.webContents.send('detail:delete')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Clone Note',
|
||||
accelerator: macOS ? 'Command+D' : 'Control+D',
|
||||
accelerator: 'CommandOrControl+D',
|
||||
click () {
|
||||
mainWindow.webContents.send('list:clone')
|
||||
}
|
||||
@@ -260,7 +260,7 @@ const view = {
|
||||
},
|
||||
{
|
||||
label: 'Toggle Developer Tools',
|
||||
accelerator: macOS ? 'Command+Alt+I' : 'Control+Shift+I',
|
||||
accelerator: 'CommandOrControl+Alt+I',
|
||||
click () {
|
||||
BrowserWindow.getFocusedWindow().toggleDevTools()
|
||||
}
|
||||
@@ -314,21 +314,21 @@ const view = {
|
||||
},
|
||||
{
|
||||
label: 'Actual Size',
|
||||
accelerator: macOS ? 'CommandOrControl+0' : 'Control+0',
|
||||
accelerator: 'CommandOrControl+0',
|
||||
click () {
|
||||
mainWindow.webContents.send('status:zoomreset')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Zoom In',
|
||||
accelerator: macOS ? 'CommandOrControl+=' : 'Control+=',
|
||||
accelerator: 'CommandOrControl+=',
|
||||
click () {
|
||||
mainWindow.webContents.send('status:zoomin')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Zoom Out',
|
||||
accelerator: macOS ? 'CommandOrControl+-' : 'Control+-',
|
||||
accelerator: 'CommandOrControl+-',
|
||||
click () {
|
||||
mainWindow.webContents.send('status:zoomout')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user