Function freya_elements::elements::onkeyup

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