Rename select all text function

This commit is contained in:
Rob Garrison 2018-09-05 07:28:55 -05:00
parent 95f9f9c5d4
commit 3fd3c53bd9

View File

@ -264,7 +264,7 @@ function configDialog(style) {
type: va.type,
onchange: updateVarOnChange,
oninput: updateVarOnInput,
onfocus: focusInput,
onfocus: selectAllOnFocus,
};
if (va.type === 'range') {
options.min = va.range[0];
@ -314,7 +314,7 @@ function configDialog(style) {
}
}
function focusInput(event) {
function selectAllOnFocus(event) {
event.target.select();
}