@@ -252,7 +254,13 @@ export function ManagerChat({
placeholder="Type your message..."
className="border-border bg-background text-foreground placeholder:text-muted-foreground min-h-[60px] flex-1 resize-none text-sm"
onKeyDown={(e) => {
- if (e.key === "Enter" && (e.metaKey || e.ctrlKey) && !isLoading) {
+ if (
+ e.key === "Enter" &&
+ (e.metaKey || e.ctrlKey) &&
+ !isLoading &&
+ !disableSubmit &&
+ !!chatInput.trim()
+ ) {
e.preventDefault();
handleSendMessage();
}
@@ -270,7 +278,7 @@ export function ManagerChat({
) : (