Skip to main content

Module keys

Module keys 

Source
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.

Enums§

Key
A single physical or logical key.
KeypadKey
A key on a numeric keypad.