Skip to main content

key_event

Function key_event 

pub fn key_event(
    logical_key: Key,
    text: Option<SmolStr>,
    state: ElementState,
) -> KeyEvent
Expand description

A key event for logical_key from no particular physical key: standard location, not a repeat. Adjust the public fields for anything else.