MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / handleKeyDown

Function handleKeyDown

frontend/components/chat-input.tsx:177–185  ·  view source on GitHub ↗
(e: React.KeyboardEvent)

Source from the content-addressed store, hash-verified

175 }
176
177 const handleKeyDown = (e: React.KeyboardEvent) => {
178 if ((e.metaKey || e.ctrlKey) && e.key === "Enter") {
179 e.preventDefault()
180 const form = e.currentTarget.closest("form")
181 if (form && input.trim() && !isDisabled) {
182 form.requestSubmit()
183 }
184 }
185 }
186
187 const handlePaste = async (e: React.ClipboardEvent) => {
188 if (isDisabled) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected