diff --git a/src/layout.tsx b/src/layout.tsx index 08b871e..56f96af 100644 --- a/src/layout.tsx +++ b/src/layout.tsx @@ -285,6 +285,11 @@ const TopbarSearch: Component = () => { 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") {