mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	@@ -219,6 +219,8 @@ function useSubmitHandler() {
 | 
			
		||||
  }, []);
 | 
			
		||||
 | 
			
		||||
  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" && (e.nativeEvent.isComposing || isComposing.current))
 | 
			
		||||
      return false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user