MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / commitMidKeypress

Function commitMidKeypress

__tests__/components/chat/chat-interface.test.tsx:1524–1530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1522 // shortcut, and the browser commits the composer's keydown update between
1523 // listeners. Commit a re-render at that point.
1524 const commitMidKeypress = () => {
1525 flushSync(() => {
1526 useConversationStore.setState({
1527 planContent: "# Plan\n\n- step one\n- step two",
1528 });
1529 });
1530 };
1531 document.addEventListener("keydown", commitMidKeypress, { once: true });
1532 renderInterface();
1533 const composer = screen.getByTestId("chat-input");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected