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