MCPcopy Create free account
hub / github.com/editablejs/editable / handleDocumentMouseDown

Function handleDocumentMouseDown

packages/editor/src/components/content.tsx:143–147  ·  view source on GitHub ↗
(event: MouseEvent | TouchEvent)

Source from the content-addressed store, hash-verified

141 }
142
143 const handleDocumentMouseDown = (event: MouseEvent | TouchEvent) => {
144 const isMouseDown = IS_MOUSEDOWN.get(editor)
145 const isTouching = IS_TOUCHING.get(editor)
146 if (!isMouseDown && !isTouching && !event.defaultPrevented) setFocused(false)
147 }
148
149 const handleSelecting = (point: Point | null, rest = true, forceFocus = true) => {
150 if (!point) return

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…