mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 02:09:03 +08:00
fix: Prevent sending message during input method composition in mini window (#6104)
This commit is contained in:
parent
71ae6f2713
commit
86a58ea050
@ -90,6 +90,9 @@ const HomeWindow: FC = () => {
|
|||||||
// 例子,中文输入法候选词过程使用`Enter`直接上屏字母,日文输入法候选词过程使用`Enter`输入假名
|
// 例子,中文输入法候选词过程使用`Enter`直接上屏字母,日文输入法候选词过程使用`Enter`输入假名
|
||||||
// 输入法可以`Esc`终止候选词过程
|
// 输入法可以`Esc`终止候选词过程
|
||||||
// 这两个例子的`Enter`和`Esc`快捷助手都不应该响应
|
// 这两个例子的`Enter`和`Esc`快捷助手都不应该响应
|
||||||
|
if (e.nativeEvent.isComposing) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (e.key === 'Process') {
|
if (e.key === 'Process') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user