chromiumoxide::keys

Function get_key_definition

Source
pub fn get_key_definition(
    key: impl AsRef<str>,
) -> Option<&'static KeyDefinition>
Expand description

Returns the KeyDefinition by key name

ยงExample return the Enter key: get_key_definition("Enter").unwrap()