From 4ef26df7a0d4c3d06dbd9e380ed9feaff3263d16 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 9 Apr 2022 21:43:17 +0200 Subject: [PATCH] Add the alternate search keyboard shortcuts COMMAND+L on MacOS and CTRL+L on other platforms (#2175) --- src/renderer/App.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer/App.js b/src/renderer/App.js index c1f92be3..0685b19e 100644 --- a/src/renderer/App.js +++ b/src/renderer/App.js @@ -312,6 +312,12 @@ export default Vue.extend({ case 'Tab': this.hideOutlines = false break + case 'KeyL': + if ((process.platform !== 'darwin' && event.ctrlKey) || + (process.platform === 'darwin' && event.metaKey)) { + this.$refs.topNav.focusSearch() + } + break } },