[−][src]Function sauron::dom::on_keypress
pub fn on_keypress<CB, MSG>(
cb: CB
) -> Attribute<&'static str, &'static str, AttributeValue, Event, MSG> where
CB: Fn(KeyboardEvent) -> MSG + 'static,
MSG: 'static,
attach an on_keypress event to the html element