fix key down events

This commit is contained in:
thierryverse 2025-11-11 20:24:02 +02:00
parent 2902fd6d28
commit 87c5d24f29
4 changed files with 9 additions and 9 deletions

View file

@ -73,7 +73,7 @@ export function ChatPanelView(props: ChatPanelViewProps) {
tabIndex={0}
onClick={handleGeneratePost}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
if (e.key === "Enter") {
e.preventDefault();
handleGeneratePost();
}