make tree item blink when hitting "Show in tree"
This commit is contained in:
parent
6439cddfa6
commit
05854c7ad8
3 changed files with 17 additions and 0 deletions
|
|
@ -85,6 +85,13 @@ var handleClick = function(event) {
|
|||
label: icon('project-diagram') + ' ' + locales('editor_show_in_tree'),
|
||||
action: ()=>{
|
||||
editor.widgetTree.showWidget(editor.selectedWidgets[0])
|
||||
DOM.each(editor.widgetTree.list, '.editing', (el)=>{
|
||||
el.classList.add('editor-blink')
|
||||
el.scrollIntoView({block: 'center'})
|
||||
setTimeout(()=>{
|
||||
el.classList.remove('editor-blink')
|
||||
}, 800)
|
||||
})
|
||||
},
|
||||
shortcut: 't'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue