Function sauron::on_keypress[][src]

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

attach an on_keypress event to the html element