editor: when focusing the label property with F2, select all text in the text area
This commit is contained in:
parent
23ca4ac9a7
commit
dd58f1849f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue