We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 476fe17 commit a0c30e5Copy full SHA for a0c30e5
1 file changed
surfsense_web/components/chat/ChatPanel/ChatPanelView.tsx
@@ -64,10 +64,16 @@ export function ChatPanelView(props: ChatPanelViewProps) {
64
</div>
65
)}
66
67
- {/* Generate/Regenerate button */}
68
- <button
69
- type="button"
+ <div
+ role="button"
+ tabIndex={0}
70
onClick={handleGeneratePost}
71
+ onKeyDown={(e) => {
72
+ if (e.key === "Enter" || e.key === " ") {
73
+ e.preventDefault();
74
+ handleGeneratePost();
75
+ }
76
+ }}
77
className={cn(
78
"w-full space-y-3 rounded-xl p-3 transition-colors",
79
podcastIsStale
@@ -86,7 +92,7 @@ export function ChatPanelView(props: ChatPanelViewProps) {
86
92
<p className="text-sm font-medium text-left">
87
93
{podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"}
88
94
</p>
89
- </button>
95
+ </div>
90
96
91
97
) : (
98
<button
0 commit comments