MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleKeyDown

Function handleKeyDown

web/components/chat/ChatInput.tsx:92–97  ·  view source on GitHub ↗
(e: React.KeyboardEvent<HTMLTextAreaElement>)

Source from the content-addressed store, hash-verified

90 }, [input, isStreaming, conversationId, conversation, settings.model, addMessage, updateMessage]);
91
92 const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
93 if (e.key === "Enter" && !e.shiftKey) {
94 e.preventDefault();
95 handleSubmit();
96 }
97 };
98
99 const handleStop = () => {
100 abortRef.current?.abort();

Callers

nothing calls this directly

Calls 2

handleSubmitFunction · 0.85
preventDefaultMethod · 0.80

Tested by

no test coverage detected