support using / to focus search input

- add an icon
This commit is contained in:
geoffrey45
2022-05-24 13:29:08 +03:00
parent 5d0492d63a
commit 077939bbdc
3 changed files with 36 additions and 18 deletions
+5 -1
View File
@@ -64,11 +64,15 @@ export default function (queue: any) {
if (!key_down_fired) {
if (!ctrlKey) return;
e.preventDefault();
focusSearchBox();
key_down_fired = true;
}
}
case "/": {{
e.preventDefault();
focusSearchBox();
}}
}
});
}