Function seed::browser::dom::event_handler::keyboard_ev
source · pub fn keyboard_ev<Ms: 'static, MsU: 'static>(
trigger: impl Into<Ev>,
handler: impl FnOnce(KeyboardEvent) -> MsU + 'static + Clone
) -> EventHandler<Ms>
Expand description
Create an event that passes a web_sys::KeyboardEvent
, allowing easy access
to items like key_code
() and key().