1 2 3 4 5
let input_handler = | #enabled: &[bool, null] = &null, #handle: &fn(e: Event) -> [`Stop, `Continue] throws 'e, child: &Tui | -> Tui throws 'e `InputHandler({ child, enabled, handle })