# tui/dispatch-tree-event
Dispatch the current input event to a widget tree (target+bubble): the focused widget or hit-tested leaf consumes first, leftovers fall through. Legacy — `tui/set-widget-tree` panels must NOT call this (double-dispatch).
## Syntax
[tui/dispatch-tree-event tree-ref event bounds]
## Parameters
- `tree-ref` — ref holding the widget tree
- `event` — UNUSED; actual event is read from the current input
- `bounds` — map `%{ x y width height }`
## Examples
if [tui/dispatch-tree-event $state $ev $bounds] { return nil }
## Returns
`true` if any widget consumed the event, else `false`.
## See Also
`tui/set-widget-tree`, `tui/focus-widget`, `tui/draw-tree`