Tree focus

This commit is contained in:
Magnus Åhall 2026-05-20 18:28:16 +02:00
parent 5a0340c226
commit 45cbd49345
4 changed files with 68 additions and 9 deletions

View file

@ -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':