pub fn dispatch_event(
comp_type: &str,
ctx: &ComponentContext<'_>,
event: &InputEvent,
) -> Option<EventResult>Expand description
Route a key-press event to the named component type’s [handle_event].
Returns None for types without a shared handler (unknown types,
non-interactive types like Text/Column, or the backend-specific interactive
types listed in the module docs). Callers build a ComponentContext for
the target component, then call this.