@ -774,7 +774,16 @@ define([
e.stopPropagation();
if (e.which === 13) {
removeInput(true);
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;
if (e.which === 27) {