fix not submit rename on press enter
This commit is contained in:
1 parent
c933541f3e
commit
041b793f20
2 files changed
+2
-2
No files matched your search
+1
-1
Submodule src/behavior3 updated: 06a5db5989...af8eb167ad.
@@ -402,7 +402,7 @@ export const Explorer: FC = () => {
|
||||
useKeyDown([Hotkey.F2, isMacos ? Hotkey.Enter : ""], keysRef, (event) => {
|
||||
event.preventDefault();
|
||||
const node = findFile(selectedKeys[0], workspace.fileTree!);
|
||||
if (node && node !== workspace.fileTree) {
|
||||
if (node && node !== workspace.fileTree && !node.editing) {
|
||||
dispatch("rename", node);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user