Explorar o código

chore: translate comment to english

Cesaryuan hai 1 ano
pai
achega
b4cb8c3d75
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/components/mask.tsx

+ 2 - 1
app/components/mask.tsx

@@ -187,7 +187,8 @@ function ContextPromptItem(props: {
         onFocus={() => setFocusingInput(true)}
         onBlur={() => {
           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();
         }}
         onInput={(e) =>