no search at login page

This commit is contained in:
Elliott Balsley
2025-09-16 20:05:35 -07:00
parent 499ebb8ab4
commit f2097cce33
3 changed files with 11 additions and 9 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -4,7 +4,9 @@ const HOTKEYS: Record<string, () => void> = {
function focusGlobalSearch(): void { function focusGlobalSearch(): void {
const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!; const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!;
searchInput.focus(); if (searchInput) {
searchInput.focus();
}
} }
function handleKeydown(event: KeyboardEvent): void { function handleKeydown(event: KeyboardEvent): void {