From 1d4f1764fcb8b9dfe0379f02406bbeebc20dff08 Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 17 Apr 2018 18:22:54 +0200 Subject: [PATCH] Changed top:focus-search shortcut --- browser/main/NoteList/index.js | 4 ++-- lib/main-menu.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index e97f7aef..c4da6358 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -281,8 +281,8 @@ class NoteList extends React.Component { ee.emit('detail:focus') } - // F or S key - if (e.keyCode === 70 || e.keyCode === 83) { + // L or S key + if (e.keyCode === 76 || e.keyCode === 83) { e.preventDefault() ee.emit('top:focus-search') } diff --git a/lib/main-menu.js b/lib/main-menu.js index e253fdbf..e1e2a83a 100644 --- a/lib/main-menu.js +++ b/lib/main-menu.js @@ -252,7 +252,7 @@ const view = { }, { label: 'Focus Search', - accelerator: 'Control+S', + accelerator: 'CommandOrControl+Shift+L', click () { mainWindow.webContents.send('top:focus-search') } @@ -275,7 +275,7 @@ let editorFocused // Define extra shortcut keys mainWindow.webContents.on('before-input-event', (event, input) => { // Synonyms for Search (Find) - if (input.control && input.key === 'f' && input.type === 'keyDown') { + if (input.control && input.key === 'l' && input.type === 'keyDown') { if (!editorFocused) { mainWindow.webContents.send('top:focus-search') event.preventDefault()