[−][src]Function autopilot::key::tap
pub fn tap<T: KeyCodeConvertible + Copy>(
key: &T,
flags: &[Flag],
delay_ms: u64,
modifier_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. Delay between pressing and
releasing modifiers can be controlled using the modifier_delay_ms
parameter.