editor: when focusing the label property with F2, select all text in the text area

This commit is contained in:
jean-emmanuel 2023-03-10 10:11:59 +01:00
parent 23ca4ac9a7
commit dd58f1849f

View file

@ -465,6 +465,7 @@ class Editor {
var input = DOM.get(this.inspector.container, 'textarea[name="label"]')[0]
if (input) {
input.focus()
input.setSelectionRange(0, input.value.length)
input.scrollIntoView({block: 'center'})
}
break