Skip to content

Commit dc030e7

Browse files
committed
fix: prevent mac autocorrect in file tree fields
1 parent bc4a351 commit dc030e7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/project/FileTreeView.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,16 @@ define(function (require, exports, module) {
351351
type: "text",
352352
defaultValue: this.props.name,
353353
autoFocus: true,
354+
355+
// 🔒 Disable OS / browser assistance
356+
autoComplete: "off",
357+
autoCorrect: "off", // Safari / iOS
358+
autoCapitalize: "off", // Safari / iOS
359+
spellCheck: false, // Chrome / Firefox / Safari
360+
inputMode: "text", // Prevent smart keyboards
361+
enterKeyHint: "done", // Optional, avoids suggestions UI
362+
363+
// Event handlers
354364
onKeyDown: this.handleKeyDown,
355365
onInput: this.handleInput,
356366
onClick: this.handleClick,

0 commit comments

Comments
 (0)