From 446e78d2ab78b19a621e4a66297f774de1041c01 Mon Sep 17 00:00:00 2001
From: Robin Schneider <robin-schneider@outlook.de>
Date: Tue, 12 Oct 2021 14:36:22 +0200
Subject: Merged main, fixed hotkey support

---
 src/App.vue | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index a0de338..5c62a7f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,7 +41,7 @@
 
         <SearchInput
           class="navbar-item is-inline-block-mobile"
-          :hotkey="config.hotkey.search"
+          :hotkey=searchHotkey()
           @input="filterServices"
           @search-focus="showMenu = true"
           @search-open="navigateToFirstService"
@@ -168,6 +168,11 @@ export default {
     window.onhashchange = this.buildDashboard;
   },
   methods: {
+    searchHotkey() {
+      if (this.config.hotkey && this.config.hotkey.search) {
+        return this.config.hotkey.search;
+      }
+    },
     buildDashboard: async function () {
       const defaults = jsyaml.load(defaultConfig);
       let config;
-- 
cgit v1.2.3

