pub fn onkeydown<__Marker>(
_f: impl SuperInto<Callback<Event<KeyboardData>>, __Marker>
) -> Attribute
Expand description
The keydown
event fires when the user starts pressing any key.
Event Data: KeyboardData
§Example
fn app() -> Element {
rsx!(
rect {
onkeydown: |e| println!("Event: {e:?}")
}
)
}