MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleKeyDown

Function handleKeyDown

src/components/ConversationView/MessageTextarea.tsx:55–60  ·  view source on GitHub ↗
(event: React.KeyboardEvent)

Source from the content-addressed store, hash-verified

53 };
54
55 const handleKeyDown = (event: React.KeyboardEvent) => {
56 if (event.key === "Enter" && !event.shiftKey && !isInIME) {
57 event.preventDefault();
58 handleSend();
59 }
60 };
61
62 return (
63 <div className="w-full h-auto flex flex-row justify-between items-end border dark:border-zinc-700 rounded-lg px-2 py-1 relative shadow bg-white dark:bg-zinc-800">

Callers

nothing calls this directly

Calls 1

handleSendFunction · 0.85

Tested by

no test coverage detected