diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index 3c951dd4ea..9037a60a2f 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to the **Prowler UI** are documented in this file. - Disable "See Findings" button until scan completes [(#8762)](https://github.com/prowler-cloud/prowler/pull/8762) - Scrolling during Lighthouse AI response streaming [(#8669)](https://github.com/prowler-cloud/prowler/pull/8669) +- Lighthouse textbox to send messages on Enter [(#8747)](https://github.com/prowler-cloud/prowler/pull/8747) --- diff --git a/ui/components/lighthouse/chat.tsx b/ui/components/lighthouse/chat.tsx index 07d494a524..1c830215e9 100644 --- a/ui/components/lighthouse/chat.tsx +++ b/ui/components/lighthouse/chat.tsx @@ -134,7 +134,7 @@ export const Chat = ({ hasConfig, isActive }: ChatProps) => { // Global keyboard shortcut handler useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { - if ((e.metaKey || e.ctrlKey) && e.key === "Enter") { + if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); if (messageValue?.trim()) { onFormSubmit();