tree rename dialog - focus filename without extension

focus only the relevant part of the filename on rename dialog
this selects all prior to the first dot in the filename
This commit is contained in:
hiaselhans 2015-06-03 23:21:22 +02:00
parent 5c18ecb151
commit 23cc03ed9d

View File

@ -663,7 +663,12 @@ define([
return false;
}
});
input.focus().select();
input.focus();
if (input.val().indexOf(".") > 0) {
input[0].setSelectionRange(0,input.val().indexOf("."));
} else {
input.select();
}
}
});
};