changed initial input focus behavior

pull/941/head
Nathan Daly 10 years ago
parent ec47775d50
commit ac9b107e2b

@ -775,6 +775,7 @@ define([
}
});
input.focus();
// Highlight the filename (up to the filetype suffix) in the input field.
if (input.val().indexOf(".") > 0) {
input[0].setSelectionRange(0,input.val().indexOf("."));
} else {
@ -842,9 +843,8 @@ define([
return false;
}
});
// Put the cursor at the end of the input.
input.focus();
// Highlight the current path in the input box.
input.select();
}
});
};

Loading…
Cancel
Save