mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 14:33:41 +08:00
fix:修复中文输入法状态enter下submit问题
This commit is contained in:
@@ -134,7 +134,7 @@ function useSubmitHandler() {
|
||||
|
||||
const shouldSubmit = (e: KeyboardEvent) => {
|
||||
if (e.key !== "Enter") return false;
|
||||
|
||||
if (e.key === 'Enter' && !e.isComposing) return false
|
||||
return (
|
||||
(config.submitKey === SubmitKey.AltEnter && e.altKey) ||
|
||||
(config.submitKey === SubmitKey.CtrlEnter && e.ctrlKey) ||
|
||||
|
||||
Reference in New Issue
Block a user