Function silkenweb::document::on_keydown

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

Add a keydown event handler at the document level.

This only has an effect on WASM targets.