MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / handleKeyDown

Function handleKeyDown

frontend/src/components/commonUI/AiPromptDialog.tsx:66–71  ·  view source on GitHub ↗
(event: { key: string; preventDefault: () => void })

Source from the content-addressed store, hash-verified

64 }
65
66 const handleKeyDown = (event: { key: string; preventDefault: () => void }) => {
67 if (event.key === 'Enter' && !isLoading) {
68 event.preventDefault()
69 handleSubmit()
70 }
71 }
72
73 if (!isOpen && prompt !== '') {
74 setPrompt('')

Callers

nothing calls this directly

Calls 1

handleSubmitFunction · 0.70

Tested by

no test coverage detected