diff --git a/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx b/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx index 7485dc4..e707fd4 100644 --- a/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx +++ b/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx @@ -63,7 +63,7 @@ export const ChatInput: FC = ({ // IMEで変換中の場合は送信しない if (e.key === "Enter" && !e.nativeEvent.isComposing) { const isEnterSend = config?.enterKeyBehavior === "enter-send"; - + if (isEnterSend && !e.shiftKey) { // Enter: Send mode e.preventDefault(); diff --git a/src/components/SettingsControls.tsx b/src/components/SettingsControls.tsx index b177f04..c433d8e 100644 --- a/src/components/SettingsControls.tsx +++ b/src/components/SettingsControls.tsx @@ -27,6 +27,7 @@ export const SettingsControls: FC = ({ className = "", }: SettingsControlsProps) => { const checkboxId = useId(); + const enterKeyBehaviorId = useId(); const { config, updateConfig } = useConfig(); const queryClient = useQueryClient(); @@ -116,16 +117,24 @@ export const SettingsControls: FC = ({
{showLabels && ( -