Function key_input
pub fn key_input(key: &Key, state: ElementState) -> WindowEventExpand description
key going down or up as keyboard input, carrying its text on press.
pub fn key_input(key: &Key, state: ElementState) -> WindowEventkey going down or up as keyboard input, carrying its text on press.