pub fn press<K: Keylike>(key: K) -> Result<(), WindowsError>
Synthesize an event that presses the key.
This function panics if key
was not a valid key. For example, any char
that
is above 0x0000ffff
cannot be turned into an Input
.
winput::press('A').unwrap();