Function freya_elements::elements::events::onglobalkeyup

source ·
pub fn onglobalkeyup<E: EventReturn<T>, T>(
    _f: impl FnMut(Event<KeyboardData>) -> E + 'static,
) -> Attribute
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:?}")
        }
    )
}