1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

remove redundant conditions of macOS in main-menu

This commit is contained in:
Yuki Furukawa
2019-12-07 17:27:50 +09:00
committed by Junyoung Choi
parent 2882667e94
commit 6d455fc286

View File

@@ -86,21 +86,21 @@ const file = {
}, },
{ {
label: 'Focus Note', label: 'Focus Note',
accelerator: macOS ? 'Command+E' : 'Control+E', accelerator: 'CommandOrControl+E',
click () { click () {
mainWindow.webContents.send('detail:focus') mainWindow.webContents.send('detail:focus')
} }
}, },
{ {
label: 'Delete Note', label: 'Delete Note',
accelerator: macOS ? 'Command+Shift+Backspace' : 'Control+Shift+Backspace', accelerator: 'CommandOrControl+Shift+Backspace',
click () { click () {
mainWindow.webContents.send('detail:delete') mainWindow.webContents.send('detail:delete')
} }
}, },
{ {
label: 'Clone Note', label: 'Clone Note',
accelerator: macOS ? 'Command+D' : 'Control+D', accelerator: 'CommandOrControl+D',
click () { click () {
mainWindow.webContents.send('list:clone') mainWindow.webContents.send('list:clone')
} }
@@ -260,7 +260,7 @@ const view = {
}, },
{ {
label: 'Toggle Developer Tools', label: 'Toggle Developer Tools',
accelerator: macOS ? 'Command+Alt+I' : 'Control+Shift+I', accelerator: 'CommandOrControl+Alt+I',
click () { click () {
BrowserWindow.getFocusedWindow().toggleDevTools() BrowserWindow.getFocusedWindow().toggleDevTools()
} }
@@ -314,21 +314,21 @@ const view = {
}, },
{ {
label: 'Actual Size', label: 'Actual Size',
accelerator: macOS ? 'CommandOrControl+0' : 'Control+0', accelerator: 'CommandOrControl+0',
click () { click () {
mainWindow.webContents.send('status:zoomreset') mainWindow.webContents.send('status:zoomreset')
} }
}, },
{ {
label: 'Zoom In', label: 'Zoom In',
accelerator: macOS ? 'CommandOrControl+=' : 'Control+=', accelerator: 'CommandOrControl+=',
click () { click () {
mainWindow.webContents.send('status:zoomin') mainWindow.webContents.send('status:zoomin')
} }
}, },
{ {
label: 'Zoom Out', label: 'Zoom Out',
accelerator: macOS ? 'CommandOrControl+-' : 'Control+-', accelerator: 'CommandOrControl+-',
click () { click () {
mainWindow.webContents.send('status:zoomout') mainWindow.webContents.send('status:zoomout')
} }