From 86bdb5e2aeab97b6da3893bb76ece433238555d5 Mon Sep 17 00:00:00 2001 From: vallode <18506096+vallode@users.noreply.github.com> Date: Fri, 8 Apr 2022 04:45:22 +0200 Subject: [PATCH] Fix search input shortcut (#2140) * Add handler for slash shortcut * Fix lint errors * Change Slash shortcut to Alt+KeyD --- src/renderer/App.js | 3 +++ src/renderer/components/ft-input/ft-input.vue | 1 + src/renderer/components/top-nav/top-nav.js | 8 ++++++++ src/renderer/components/top-nav/top-nav.vue | 1 + 4 files changed, 13 insertions(+) diff --git a/src/renderer/App.js b/src/renderer/App.js index fe4a7da6..c1f92be3 100644 --- a/src/renderer/App.js +++ b/src/renderer/App.js @@ -303,6 +303,9 @@ export default Vue.extend({ case 'ArrowLeft': this.$refs.topNav.historyBack() break + case 'KeyD': + this.$refs.topNav.focusSearch() + break } } switch (event.code) { diff --git a/src/renderer/components/ft-input/ft-input.vue b/src/renderer/components/ft-input/ft-input.vue index 7803ddde..1bf38327 100644 --- a/src/renderer/components/ft-input/ft-input.vue +++ b/src/renderer/components/ft-input/ft-input.vue @@ -37,6 +37,7 @@ />