Function freya::prelude::onglobalkeydown

pub fn onglobalkeydown<__Marker>(
    _f: impl SuperInto<Callback<Event<KeyboardData>>, __Marker>,
) -> Attribute
Expand description

The globalkeydown event fires when the user starts pressing any key.

Event Data: KeyboardData

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            onglobalkeydown: |e| println!("Event: {e:?}")
        }
    )
}