mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-30 23:26:39 +08:00
fix:修复中文输入法状态enter下submit问题
This commit is contained in:
parent
0385f6ede9
commit
fffadf6051
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user