pub fn translate_key(input: KeyEvent, modifiers: KeyModifiers) -> Option<Event>Expand description
Translates a winit key event into an Event.
Reports KeyEventKind::Press, KeyEventKind::Repeat (winit’s repeat flag), and
KeyEventKind::Release. Returns None only for keys we don’t map.