Trait tfc::traits::KeyboardContext [−][src]
A context that supports keyboard events.
Platform Differences
Key::Fn
and Key::NumpadClear
are supported on macOS only. In the future,
they may be named to reflect this or removed entirely.
Required methods
fn key_down(
&mut self,
key: Key
) -> Result<(), GenericError<Self::PlatformError>>
[src]
&mut self,
key: Key
) -> Result<(), GenericError<Self::PlatformError>>
Press down a key.
fn key_up(&mut self, key: Key) -> Result<(), GenericError<Self::PlatformError>>
[src]
Release a key.
Provided methods
fn key_click(
&mut self,
key: Key
) -> Result<(), GenericError<Self::PlatformError>>
[src]
&mut self,
key: Key
) -> Result<(), GenericError<Self::PlatformError>>