Skip to content

Commit b349921

Browse files
feat(web): Insert newline on Alt+Enter in chat box
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b99a020 commit b349921

File tree

1 file changed

+6
-0
lines changed
  • packages/web/src/features/chat/components/chatBox

1 file changed

+6
-0
lines changed

packages/web/src/features/chat/components/chatBox/chatBox.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ const ChatBoxComponent = ({
215215
break;
216216
}
217217

218+
if (event.altKey) {
219+
event.preventDefault();
220+
editor.insertBreak();
221+
break;
222+
}
223+
218224
event.preventDefault();
219225
onSubmit();
220226
break;

0 commit comments

Comments
 (0)