Function freya::prelude::dioxus_elements::events::onglobalkeyup

pub fn onglobalkeyup<E, T>(
    _f: impl FnMut(Event<KeyboardData>) -> E + 'static,
) -> Attribute
where E: EventReturn<T>,
Expand description

The globalkeyup event fires when the user releases any key being pressed.

Event Data: KeyboardData

ยงExample

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