(item: Renderable)
| 87 | if (!focus) return |
| 88 | if (focus.isDestroyed) return |
| 89 | function find(item: Renderable) { |
| 90 | for (const child of item.getChildren()) { |
| 91 | if (child === focus) return true |
| 92 | if (find(child)) return true |
| 93 | } |
| 94 | return false |
| 95 | } |
| 96 | const found = find(renderer.root) |
| 97 | if (!found) return |
| 98 | focus.focus() |
no outgoing calls
no test coverage detected