[][src]Function sauron::on_keydown

pub fn on_keydown<CB, MSG>(
    cb: CB
) -> Attribute<&'static str, &'static str, AttributeValue, Event, MSG> where
    MSG: 'static,
    CB: Fn(KeyboardEvent) -> MSG + 'static, 

attach an on_keydown event to the html element