Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove redundant conditions of macOS in main-menu #3390

Merged
merged 1 commit into from
Dec 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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