mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Changed top:focus-search shortcut
This commit is contained in:
@@ -281,8 +281,8 @@ class NoteList extends React.Component {
|
|||||||
ee.emit('detail:focus')
|
ee.emit('detail:focus')
|
||||||
}
|
}
|
||||||
|
|
||||||
// F or S key
|
// L or S key
|
||||||
if (e.keyCode === 70 || e.keyCode === 83) {
|
if (e.keyCode === 76 || e.keyCode === 83) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
ee.emit('top:focus-search')
|
ee.emit('top:focus-search')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ const view = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Focus Search',
|
label: 'Focus Search',
|
||||||
accelerator: 'Control+S',
|
accelerator: 'CommandOrControl+Shift+L',
|
||||||
click () {
|
click () {
|
||||||
mainWindow.webContents.send('top:focus-search')
|
mainWindow.webContents.send('top:focus-search')
|
||||||
}
|
}
|
||||||
@@ -275,7 +275,7 @@ let editorFocused
|
|||||||
// Define extra shortcut keys
|
// Define extra shortcut keys
|
||||||
mainWindow.webContents.on('before-input-event', (event, input) => {
|
mainWindow.webContents.on('before-input-event', (event, input) => {
|
||||||
// Synonyms for Search (Find)
|
// Synonyms for Search (Find)
|
||||||
if (input.control && input.key === 'f' && input.type === 'keyDown') {
|
if (input.control && input.key === 'l' && input.type === 'keyDown') {
|
||||||
if (!editorFocused) {
|
if (!editorFocused) {
|
||||||
mainWindow.webContents.send('top:focus-search')
|
mainWindow.webContents.send('top:focus-search')
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|||||||
Reference in New Issue
Block a user