(event: KeyboardEvent<HTMLDetailsElement>)
| 9 | const PICKER_LIMIT = 40; |
| 10 | |
| 11 | function closeOnEscape(event: KeyboardEvent<HTMLDetailsElement>) { |
| 12 | if (event.key !== 'Escape') return; |
| 13 | event.stopPropagation(); event.currentTarget.open = false; |
| 14 | event.currentTarget.querySelector('summary')?.focus(); |
| 15 | } |
| 16 | |
| 17 | /** A searchable list of the nodes already loaded in this scope; nothing is fetched. */ |
| 18 | export function PathPicker({ nodes, onPick }: { nodes: readonly GraphNode[]; onPick: (node: GraphNode) => void }) { |
nothing calls this directly
no outgoing calls
no test coverage detected