From 420734b0cc391b73b6f1a843accef34a510de10c Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 27 Mar 2022 00:43:10 +1100 Subject: Make search shortcut re-focus input when search-bar is open --- src/components/TileTree.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/TileTree.vue') diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index 859ce1e..e0992b1 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -277,6 +277,8 @@ export default defineComponent({ } else if (evt.key == 'F' && evt.ctrlKey){ if (!this.searchOpen){ this.onSearchIconClick(); + } else { + this.$refs.searchModal.focusInput(); } } }, @@ -529,7 +531,7 @@ export default defineComponent({ + @search-close="onSearchClose" @search-node="onSearchNode" ref="searchModal"/> -- cgit v1.2.3