tree: blink selection when hitting "t" too

This commit is contained in:
bordun 2021-05-16 11:15:19 +02:00
parent c3f466d652
commit c89252f4cc
3 changed files with 15 additions and 7 deletions

View file

@ -223,6 +223,18 @@ class UiTree extends UiWidget {
}
blinkSelected() {
DOM.each(this.list, '.editing', (el)=>{
el.classList.add('editor-blink')
el.scrollIntoView({block: 'center'})
setTimeout(()=>{
el.classList.remove('editor-blink')
}, 800)
})
}
select() {
// hint selection in folded containers