From 420734b0cc391b73b6f1a843accef34a510de10c Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 27 Mar 2022 00:43:10 +1100
Subject: Make search shortcut re-focus input when search-bar is open

---
 src/components/SearchModal.vue | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/components/SearchModal.vue')

diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 6163d88..7e32236 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -27,6 +27,9 @@ export default defineComponent({
 				this.$emit('search-node', tolNode);
 			}
 		},
+		focusInput(){
+			(this.$refs.searchInput as HTMLInputElement).focus();
+		},
 	},
 	mounted(){
 		(this.$refs.searchInput as HTMLInputElement).focus();
-- 
cgit v1.2.3

