fn div_with_global_event() -> impl Element {
    El::new().update_raw_el(|raw_el| {
        raw_el.global_event_handler(|event: events::KeyDown| {
            let key = event.key();
            println!("Global: {key:#?}");
        })
    })
}
// Register global listener (attach to `window`).
// The listener is removed together with the El who has registered it.
// @TODO New Zoon API?
// @TODO Can we assume there'll always be a root El?
Register global listener (attach to `window`).
The listener is removed together with the El who has registered it.
Register global listener ( attach to ` window ` ) . The listener is removed together with the El who has registered it .
fn div_with_global_event() -> impl Element {
    El::new().update_raw_el(|raw_el| {
        raw_el.global_event_handler(|event: events::KeyDown| {
            let key = event.key();
            println!("Global: {key:#?}");
        })
    })
}
fn div_with_global_event ( ) -> impl Element { El :: new ( ) . update_raw_el ( | raw_el | { raw_el . global_event_handler ( | event : events :: KeyDown | { let key = event . key ( ) ; println ! ( " " ) ; } ) } ) }
Register global listener (attach to `window`).
Register global listener ( attach to ` window ` ) .
TODO
None
TODO
None