dont focus search bar if already focused on another text input
283 unmodified linesExpand all284285286287288289290291292293294295296110 unmodified linesExpand all283 unmodified linesExpand all onMount(() => { const handler = (e: KeyboardEvent) => { if (e.ctrlKey || e.metaKey) return; if (e.key === "/") { const active = document.activeElement; if (active && (active.tagName === 'INPUT' || active.tagName === 'TEXTAREA' || (active as HTMLElement).isContentEditable)) { return; }
e.preventDefault(); inputRef?.focus(); } else if (e.key === "Escape") { setQuery('');110 unmodified linesExpand all