Skip to main content

parse_key_combo

Function parse_key_combo 

Source
pub fn parse_key_combo(combo: &str) -> Result<KeyCombo, ComputerError>
Expand description

Parse cmd+shift+4, ctrl+alt+delete, or a bare key such as enter.

Modifier names: cmd, command, meta, super, ctrl, control, alt, option, and shift. The last segment is the key.