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

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

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.