MCPcopy
hub / github.com/anomalyco/opencode / isEditableTarget

Function isEditableTarget

packages/app/src/pages/session.tsx:902–905  ·  view source on GitHub ↗
(target: EventTarget | null | undefined)

Source from the content-addressed store, hash-verified

900 }))
901
902 const isEditableTarget = (target: EventTarget | null | undefined) => {
903 if (!(target instanceof HTMLElement)) return false
904 return /^(INPUT|TEXTAREA|SELECT|BUTTON)$/.test(target.tagName) || target.isContentEditable
905 }
906
907 const deepActiveElement = () => {
908 let current: Element | null = document.activeElement

Callers 1

handleKeyDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected