Select the whole field when renaming a file.

This commit is contained in:
Dane Everitt 2017-01-03 17:37:43 -05:00
parent 130aa6cc8a
commit b8b0e0bdf9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -139,6 +139,8 @@ class ActionsClass {
const inputLoader = nameBlock.find('.input-loader'); const inputLoader = nameBlock.find('.input-loader');
inputField.focus(); inputField.focus();
inputField.setSelectionRange(inputField.val().length * 2, inputField.val().length * 2);
inputField.on('blur keydown', e => { inputField.on('blur keydown', e => {
// Save Field // Save Field
if ( if (