Expand description
Platform-neutral key chords parsed from xdotool-style specifications.
use computer_use::keys::{Key, KeyChord, Modifiers};
let chord: KeyChord = "super+shift+t".parse()?;
assert_eq!(chord.modifiers, Modifiers::META | Modifiers::SHIFT);
assert_eq!(chord.key, Key::Char('t'));Structs§
- KeyChord
- A key plus the modifiers held while pressing it.
- Modifiers
- Modifier keys held during a key press.