diff --git a/app/src/components/input.tsx b/app/src/components/input.tsx index 0e175994..aacd1260 100644 --- a/app/src/components/input.tsx +++ b/app/src/components/input.tsx @@ -263,6 +263,8 @@ export default function MessageInput(props: MessageInputProps) { const hotkeyHandler = useMemo(() => { const keys = [ ['Escape', blur, { preventDefault: true }], + ['ctrl+Enter', onSubmit, { preventDefault: true }], + ]; if (submitOnEnter) { keys.unshift(['Enter', onSubmit, { preventDefault: true }]);