mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
uniform shortcut notation
This commit is contained in:
@@ -48,7 +48,7 @@ var view = {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Focus Search',
|
label: 'Focus Search',
|
||||||
accelerator: 'Control + Alt + F',
|
accelerator: 'Control+Alt+F',
|
||||||
click: function () {
|
click: function () {
|
||||||
console.log('focus find')
|
console.log('focus find')
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ var view = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Toggle Markdown Preview',
|
label: 'Toggle Markdown Preview',
|
||||||
accelerator: OSX ? 'Command + P' : 'Ctrl + P',
|
accelerator: OSX ? 'Command+P' : 'Control+P',
|
||||||
click: function () {
|
click: function () {
|
||||||
console.log('markdown')
|
console.log('markdown')
|
||||||
}
|
}
|
||||||
@@ -68,10 +68,7 @@ var view = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Reload',
|
label: 'Reload',
|
||||||
accelerator: (function () {
|
accelerator: OSX ? 'Command+R' : 'Control+R',
|
||||||
if (process.platform === 'darwin') return 'Command+R'
|
|
||||||
else return 'Ctrl+R'
|
|
||||||
})(),
|
|
||||||
click: function () {
|
click: function () {
|
||||||
BrowserWindow.getFocusedWindow().reload()
|
BrowserWindow.getFocusedWindow().reload()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,14 +54,14 @@ var file = {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'New Note',
|
label: 'New Note',
|
||||||
accelerator: 'CmdOrCtrl + N',
|
accelerator: 'CommandOrControl+N',
|
||||||
click: function () {
|
click: function () {
|
||||||
mainWindow.webContents.send('top:new-note')
|
mainWindow.webContents.send('top:new-note')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Focus Note',
|
label: 'Focus Note',
|
||||||
accelerator: 'Control + E',
|
accelerator: 'Control+E',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('detail:focus')
|
mainWindow.webContents.send('detail:focus')
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ var file = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Delete Note',
|
label: 'Delete Note',
|
||||||
accelerator: OSX ? 'Control + Backspace' : 'Control + Delete',
|
accelerator: OSX ? 'Control+Backspace' : 'Control+Delete',
|
||||||
click: function () {
|
click: function () {
|
||||||
mainWindow.webContents.send('detail:delete')
|
mainWindow.webContents.send('detail:delete')
|
||||||
}
|
}
|
||||||
@@ -154,14 +154,14 @@ var view = {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Reload',
|
label: 'Reload',
|
||||||
accelerator: 'CmdOrCtrl+R',
|
accelerator: 'CommandOrControl+R',
|
||||||
click: function () {
|
click: function () {
|
||||||
BrowserWindow.getFocusedWindow().reload()
|
BrowserWindow.getFocusedWindow().reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Toggle Developer Tools',
|
label: 'Toggle Developer Tools',
|
||||||
accelerator: OSX ? 'Command+Alt+I' : 'Ctrl+Shift+I',
|
accelerator: OSX ? 'Command+Alt+I' : 'Control+Shift+I',
|
||||||
click: function () {
|
click: function () {
|
||||||
BrowserWindow.getFocusedWindow().toggleDevTools()
|
BrowserWindow.getFocusedWindow().toggleDevTools()
|
||||||
}
|
}
|
||||||
@@ -171,21 +171,21 @@ var view = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Next Note',
|
label: 'Next Note',
|
||||||
accelerator: 'Control + J',
|
accelerator: 'Control+J',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('list:next')
|
mainWindow.webContents.send('list:next')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Previous Note',
|
label: 'Previous Note',
|
||||||
accelerator: 'Control + U',
|
accelerator: 'Control+U',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('list:prior')
|
mainWindow.webContents.send('list:prior')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Jump to Top',
|
label: 'Jump to Top',
|
||||||
accelerator: 'Control + G',
|
accelerator: 'Control+G',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('list:jumpToTop')
|
mainWindow.webContents.send('list:jumpToTop')
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ var view = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Focus Search',
|
label: 'Focus Search',
|
||||||
accelerator: 'Control + S',
|
accelerator: 'Control+S',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('top:focus-search')
|
mainWindow.webContents.send('top:focus-search')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user