Function freya::elements::events::onkeyup

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

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

Event Data: KeyboardData

§Example

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