MCPcopy Index your code
hub / github.com/simstudioai/sim / onKeyDown

Function onKeyDown

apps/sim/hooks/use-auto-scroll.ts:131–135  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

129 pointerDownRef.current = false
130 }
131 const onKeyDown = (e: KeyboardEvent) => {
132 if (SCROLL_UP_KEYS.has(e.key) || (e.key === ' ' && e.shiftKey)) {
133 lastUserGestureAtRef.current = performance.now()
134 }
135 }
136
137 /**
138 * Re-engages when the user returns near the bottom, and detaches on an upward

Callers 1

dropdown-menu.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected