T45d Site · Components passes review; Slash leaves a hidden field alone; the review log moves to tasks/reviews.md

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 08:38:05 -04:00
1 parent 5cc9a302fb
commit 557c8dd2cd
4 files changed
+330 -325

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export function Find({ query, onQuery, onEnter, className }: { query: string; on
const field = useRef<HTMLInputElement>(null);
useEffect(() => {
const slash = (e: KeyboardEvent) => {
if (e.key !== "/" || e.metaKey || e.ctrlKey || typing(e)) return;
if (e.key !== "/" || e.metaKey || e.ctrlKey || typing(e) || !field.current?.checkVisibility()) return;
e.preventDefault();
field.current?.focus();
};