fix: allow modified Enter send in narrow layouts (#631)

This commit is contained in:
Eyal En Gad
2026-03-11 00:35:20 +02:00
committed by GitHub
parent e1542bdee6
commit ebe069d372
@@ -1054,7 +1054,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({ onOpenSettings, scrollToBo
}
// Handle Enter/Ctrl+Enter based on queue mode
if (e.key === 'Enter' && !e.shiftKey && !isMobile) {
if (e.key === 'Enter' && !e.shiftKey && (!isMobile || e.ctrlKey || e.metaKey)) {
e.preventDefault();
const isCtrlEnter = e.ctrlKey || e.metaKey;