[][src]Function seed::events::keyboard_ev

pub fn keyboard_ev<Ms, T: ToString + Copy>(
    trigger: T,
    handler: impl FnOnce(KeyboardEvent) -> Ms + 'static + Clone
) -> Listener<Ms>

Create an event that passes a web_sys::KeyboardEvent, allowing easy access to items like key_code() and key().