Function key_code

Source
pub fn key_code(key: &Key) -> Option<KeyCode>
Expand description

Converts a VirtualKeyCode from [winit] to an [iced] key code.