Function winput::release [−][src]
pub fn release<K: Keylike>(key: K)
Synthesizes an event that releases the key.
If the function fails to synthesize the input, no error is emited and the
function fails silently. If you wish to retreive an eventual error, use
send_inputs
instead.
Panics
This function panics if key
was not a valid key. For example, any char
that
is above 0x0000ffff
cannot be turned into an Input
.
Example
ⓘ
winput::release('B').unwrap();