Function seed::to_kbevent

source ·
pub fn to_kbevent(event: &Event) -> &KeyboardEvent
Expand description

Convert a web_sys::Event to a web_sys::KeyboardEvent. Useful for extracting info like which key has been pressed, which is not available with normal Events.