mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-27 02:54:48 +00:00
fix(app): enable Safari autocorrect in normal mode, disable in shell mode (#15563)
This commit is contained in:
committed by
GitHub
parent
a71b11caca
commit
95385eb652
@@ -1203,9 +1203,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||||||
aria-multiline="true"
|
aria-multiline="true"
|
||||||
aria-label={placeholder()}
|
aria-label={placeholder()}
|
||||||
contenteditable="true"
|
contenteditable="true"
|
||||||
autocapitalize="off"
|
autocapitalize={store.mode === "normal" ? "sentences" : "off"}
|
||||||
autocorrect="off"
|
autocorrect={store.mode === "normal" ? "on" : "off"}
|
||||||
spellcheck={false}
|
spellcheck={store.mode === "normal"}
|
||||||
onInput={handleInput}
|
onInput={handleInput}
|
||||||
onPaste={handlePaste}
|
onPaste={handlePaste}
|
||||||
onCompositionStart={() => setComposing(true)}
|
onCompositionStart={() => setComposing(true)}
|
||||||
|
|||||||
Reference in New Issue
Block a user