MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isEditing

Function isEditing

packages/react/src/components/tool-tree.tsx:357–362  ·  view source on GitHub ↗
(el: Element | null)

Source from the content-addressed store, hash-verified

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 === "/" &&

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected