(el: Element | null)
| 355 | // Keyboard shortcuts — `/` focuses search, Escape clears |
| 356 | useEffect(() => { |
| 357 | const isEditing = (el: Element | null) => |
| 358 | el instanceof HTMLElement && |
| 359 | (el.isContentEditable || |
| 360 | el.tagName === "INPUT" || |
| 361 | el.tagName === "TEXTAREA" || |
| 362 | el.tagName === "SELECT"); |
| 363 | const handler = (e: KeyboardEvent) => { |
| 364 | if ( |
| 365 | e.key === "/" && |