Skip to content

Commit

Permalink
remove redundant conditions of macOS in main-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
boronngo authored and Rokt33r committed Dec 23, 2019
1 parent 2882667 commit 6d455fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/main-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -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')
}
Expand Down

0 comments on commit 6d455fc

Please sign in to comment.