Function key_event
pub fn key_event(
logical_key: Key,
text: Option<SmolStr>,
state: ElementState,
) -> KeyEventExpand description
A key event for logical_key from no particular physical key: standard
location, not a repeat. Adjust the public fields for anything else.