We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e20ce8e + 028957f commit f274683Copy full SHA for f274683
app/components/chat.tsx
@@ -219,6 +219,8 @@ function useSubmitHandler() {
219
}, []);
220
221
const shouldSubmit = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
222
+ // Fix Chinese input method "Enter" on Safari
223
+ if (e.keyCode == 229) return false;
224
if (e.key !== "Enter") return false;
225
if (e.key === "Enter" && (e.nativeEvent.isComposing || isComposing.current))
226
return false;
0 commit comments