This commit is contained in:
exttex
2021-02-26 16:09:32 +01:00
parent 025569bbb7
commit 227f22180a
34 changed files with 749 additions and 561 deletions

View File

@ -478,7 +478,7 @@ export default {
// /search
document.addEventListener('keypress', (e) => {
if (e.keyCode != 47) return;
if (e.key != '/' || e.target.nodeName == "INPUT") return;
this.$refs.searchBar.focus();
setTimeout(() => {
if (this.searchQuery.startsWith('/')) this.searchQuery = this.searchQuery.substring(1);