Function silkenweb::window::on_input

source ·
pub fn on_input(f: impl FnMut(InputEvent) + 'static) -> EventCallback
Expand description

Add a input event handler at the window level.

This only has an effect on WASM targets.