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 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -4,8 +4,10 @@ const HOTKEYS: Record<string, () => void> = {
function focusGlobalSearch(): void {
const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!;
if (searchInput) {
searchInput.focus();
}
}
function handleKeydown(event: KeyboardEvent): void {
// Ignore hotkeys when focused on form elements or when modal is open