Function autopilot::key::tap[][src]

pub fn tap<T: KeyCodeConvertible + Copy>(key: T, flags: &[Flag], delay_ms: u64)

Convenience wrapper around toggle() that holds down and then releases the given key and modifier flags. Delay between pressing and releasing the key can be controlled using the delay_ms parameter.