Просмотр исходного кода

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

Alexandre Reyes Martins 1 месяц назад
Родитель
Сommit
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)}