فهرست منبع

fix(app): enable Safari autocorrect in normal mode, disable in shell mode (#15563)

Alexandre Reyes Martins 7 ماه پیش
والد
کامیت
95385eb652
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      packages/app/src/components/prompt-input.tsx

+ 3 - 3
packages/app/src/components/prompt-input.tsx

@@ -1203,9 +1203,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
               aria-multiline="true"
               aria-label={placeholder()}
               contenteditable="true"
-              autocapitalize="off"
-              autocorrect="off"
-              spellcheck={false}
+              autocapitalize={store.mode === "normal" ? "sentences" : "off"}
+              autocorrect={store.mode === "normal" ? "on" : "off"}
+              spellcheck={store.mode === "normal"}
               onInput={handleInput}
               onPaste={handlePaste}
               onCompositionStart={() => setComposing(true)}