From 5717ac73e970016f6e38faead58f9c126bc79cd3 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 25 Mar 2022 22:02:20 +1100
Subject: Add Ctrl-Shift-F search shortcut

---
 src/components/TileTree.vue | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index 723befc..dfe1213 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -272,6 +272,10 @@ export default defineComponent({
 		onKeyUp(evt: KeyboardEvent){
 			if (evt.key == 'Escape'){
 				this.closeModalsAndSettings();
+			} else if (evt.key == 'F' && evt.ctrlKey){
+				if (!this.searchOpen){
+					this.onSearchIconClick();
+				}
 			}
 		},
 		initLayoutMap(node: LayoutNode): Map<string,LayoutNode> {
-- 
cgit v1.2.3

