|
|
@ -774,7 +774,16 @@ define([
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
if (e.which === 13) {
|
|
|
|
if (e.which === 13) {
|
|
|
|
removeInput(true);
|
|
|
|
removeInput(true);
|
|
|
|
manager.rename(path, $input.val(), refresh);
|
|
|
|
if (JSON.stringify(path) === JSON.stringify(currentPath)) {
|
|
|
|
|
|
|
|
var newName = $input.val();
|
|
|
|
|
|
|
|
manager.rename(path, $input.val(), function () {
|
|
|
|
|
|
|
|
path[path.length - 1] = newName;
|
|
|
|
|
|
|
|
APP.displayDirectory(path);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
manager.rename(path, $input.val(), refresh);
|
|
|
|
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (e.which === 27) {
|
|
|
|
if (e.which === 27) {
|
|
|
|