MCPcopy Create free account
hub / github.com/Qinbf/groundmap / onKey

Function onKey

tools/debug-console/components/ChatPanel.tsx:336–341  ·  view source on GitHub ↗
(e: React.KeyboardEvent<HTMLTextAreaElement>)

Source from the content-addressed store, hash-verified

334 ]);
335
336 const onKey = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
337 if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
338 e.preventDefault();
339 send();
340 }
341 };
342
343 const abort = () => {
344 abortRef.current?.abort();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected