mirror of
				https://github.com/Yidadaa/ChatGPT-Next-Web.git
				synced 2025-11-04 08:26:12 +08:00 
			
		
		
		
	@@ -219,6 +219,8 @@ function useSubmitHandler() {
 | 
				
			|||||||
  }, []);
 | 
					  }, []);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const shouldSubmit = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
 | 
					  const shouldSubmit = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
 | 
				
			||||||
 | 
					    // Fix Chinese input method "Enter" on Safari
 | 
				
			||||||
 | 
					    if (e.keyCode == 229) return false;
 | 
				
			||||||
    if (e.key !== "Enter") return false;
 | 
					    if (e.key !== "Enter") return false;
 | 
				
			||||||
    if (e.key === "Enter" && (e.nativeEvent.isComposing || isComposing.current))
 | 
					    if (e.key === "Enter" && (e.nativeEvent.isComposing || isComposing.current))
 | 
				
			||||||
      return false;
 | 
					      return false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user