Skip to main content

during_input

Function during_input 

pub fn during_input<R>(
    report: Rc<dyn Fn(CopyReport)>,
    run: impl FnOnce() -> R,
) -> R
Expand description

Run run while dispatching the user’s input event (a click on Copy). A copy made inside may publish through the browser’s own copy command; report hears how it ended.