diff --git a/surfsense_web/components/chat/ChatPanel/ChatPanelView.tsx b/surfsense_web/components/chat/ChatPanel/ChatPanelView.tsx index cc86c82c4..868080dbd 100644 --- a/surfsense_web/components/chat/ChatPanel/ChatPanelView.tsx +++ b/surfsense_web/components/chat/ChatPanel/ChatPanelView.tsx @@ -64,10 +64,16 @@ export function ChatPanelView(props: ChatPanelViewProps) { )} - {/* Generate/Regenerate button */} - { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + handleGeneratePost(); + } + }} className={cn( "w-full space-y-3 rounded-xl p-3 transition-colors", podcastIsStale @@ -86,7 +92,7 @@ export function ChatPanelView(props: ChatPanelViewProps) { {podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"} - + ) : (
{podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"}