Tree focus
This commit is contained in:
parent
5a0340c226
commit
45cbd49345
4 changed files with 68 additions and 9 deletions
|
|
@ -55,10 +55,12 @@ export class App {
|
|||
|
||||
switch (event.key.toUpperCase()) {
|
||||
case 'T':
|
||||
if (document.activeElement.id === 'tree-nodes')
|
||||
this.nodeUI.takeFocus()
|
||||
else
|
||||
if (document.activeElement.id === 'tree-nodes') {
|
||||
console.log('take focus')
|
||||
this.nodeUI.takeFocus()
|
||||
} else {
|
||||
this.tree.focus()
|
||||
}
|
||||
break
|
||||
|
||||
case 'F':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue