Commit 741067e
committed
fix: select name for editing when creating new files or folders
Fixes #2029
When creating a new file or folder via the context menu, the name is now
automatically selected for editing. This matches the expected macOS UX
behavior where new items can be immediately renamed.
Changes:
- Added renameFile() call after creating new file in newFile()
- Added renameFile() call after creating new folder in newFolder()
Note: The newFileFromClipboard() already had this behavior, this makes
the other creation methods consistent.1 parent cec6287 commit 741067e
File tree
1 file changed
+2
-0
lines changed1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
0 commit comments