mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
chore: translate comment to english
This commit is contained in:
@@ -187,7 +187,8 @@ function ContextPromptItem(props: {
|
|||||||
onFocus={() => setFocusingInput(true)}
|
onFocus={() => setFocusingInput(true)}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
setFocusingInput(false);
|
setFocusingInput(false);
|
||||||
// 如果在用户失去焦点时不清除选区,那么一些依赖类似「划词翻译」的扩展会始终显示浮动条
|
// If the selection is not removed when the user loses focus, some
|
||||||
|
// extensions like "Translate" will always display a floating bar
|
||||||
window?.getSelection()?.removeAllRanges();
|
window?.getSelection()?.removeAllRanges();
|
||||||
}}
|
}}
|
||||||
onInput={(e) =>
|
onInput={(e) =>
|
||||||
|
Reference in New Issue
Block a user