From 584f2b4b32e69865d9561f1537142791710f676d Mon Sep 17 00:00:00 2001
From: Robin Schneider <robin-schneider@outlook.de>
Date: Sat, 11 Sep 2021 12:42:57 +0200
Subject: Added custom hotkey support

---
 src/App.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 1f4f509..9b4803f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,6 +41,7 @@
 
         <SearchInput
           class="navbar-item is-inline-block-mobile"
+          :hotkey="config.hotkey"
           @input="filterServices"
           @search-focus="showMenu = true"
           @search-open="navigateToFirstService"
-- 
cgit v1.2.3


From 1c0bf7132aedf869abd739b6eca1b489887414b2 Mon Sep 17 00:00:00 2001
From: Robin Schneider <robin-schneider@outlook.de>
Date: Mon, 11 Oct 2021 23:54:34 +0200
Subject: Added requested changes

---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 5e71796..a0de338 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,7 +41,7 @@
 
         <SearchInput
           class="navbar-item is-inline-block-mobile"
-          :hotkey="config.hotkey"
+          :hotkey="config.hotkey.search"
           @input="filterServices"
           @search-focus="showMenu = true"
           @search-open="navigateToFirstService"
-- 
cgit v1.2.3


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

