Select the whole field when renaming a file.
This commit is contained in:
parent
130aa6cc8a
commit
b8b0e0bdf9
3 changed files with 4 additions and 2 deletions
2
public/js/filemanager.min.js
vendored
2
public/js/filemanager.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue