Skip to content

Commit 02a8235

Browse files
committed
fix: prevent mac autocorrect in file tree fields for directory rename input
1 parent dc030e7 commit 02a8235

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
@@ -786,6 +786,16 @@ define(function (require, exports, module) {
786786
type: "text",
787787
defaultValue: this.props.name,
788788
autoFocus: true,
789+
790+
// 🔒 Disable OS / browser assistance
791+
autoComplete: "off",
792+
autoCorrect: "off", // Safari / iOS
793+
autoCapitalize: "off", // Safari / iOS
794+
spellCheck: false, // Chrome / Firefox / Safari
795+
inputMode: "text", // Prevent smart keyboards
796+
enterKeyHint: "done", // Optional, avoids suggestions UI
797+
798+
// events
789799
onKeyDown: this.handleKeyDown,
790800
onInput: this.handleInput,
791801
onBlur: this.handleBlur,

0 commit comments

Comments
 (0)