1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #235 from asmsuechan/add-focus-shortcut

Adds shortcuts
This commit is contained in:
Sota Sugiura
2017-01-21 16:12:13 +09:00
committed by GitHub
5 changed files with 77 additions and 2 deletions

View File

@@ -59,6 +59,13 @@ var file = {
mainWindow.webContents.send('top:new-note')
}
},
{
label: 'Focus Note',
accelerator: 'Control + E',
click () {
mainWindow.webContents.send('detail:focus')
}
},
{
type: 'separator'
},
@@ -158,6 +165,33 @@ var view = {
click: function () {
BrowserWindow.getFocusedWindow().toggleDevTools()
}
},
{
type: 'separator'
},
{
label: 'Next Note',
accelerator: 'Control + J',
click () {
mainWindow.webContents.send('list:next')
}
},
{
label: 'Previous Note',
accelerator: 'Control + U',
click () {
mainWindow.webContents.send('list:prior')
}
},
{
type: 'separator'
},
{
label: 'Focus Search',
accelerator: 'Control + S',
click () {
mainWindow.webContents.send('top:focus-search')
}
}
]
}