Function freya::elements::events::onkeyup

source ·
pub fn onkeyup<'a>(
    _cx: &'a ScopeState,
    _f: impl FnMut(Event<KeyboardData>) + 'a
) -> Attribute<'a>
Expand description

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

Event Data: KeyboardData

Example:

fn app(cx: Scope) -> Element {
    render!(
        rect {
            keyup: |e| println!("Event: {e:?}")
        }
    )
}