Function seed::dom_types::keyboard_ev

source ·
pub fn keyboard_ev<Ms>(
    trigger: &str,
    handler: impl FnMut(KeyboardEvent) -> Ms + 'static
) -> Listener<Ms>where
    Ms: Clone + 'static,
Expand description

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