[−][src]Enum enigo::Key
A key on the keyboard. For alphabetical keys, use Key::Layout for a system independent key. If a key is missing, you can use the raw keycode with Key::Raw.
Variants
alt key on Linux and Windows (option key on macOS)
backspace key
caps lock key
now renamed to Meta
command key on macOS (super key on Linux, windows key on Windows)
control key
delete key
down arrow key
end key
escape key (esc)
F1 key
F10 key
F11 key
F12 key
F2 key
F3 key
F4 key
F5 key
F6 key
F7 key
F8 key
F9 key
home key
left arrow key
meta key (also known as "windows", "super", and "command")
option key on macOS (alt key on Linux and Windows)
page down key
page up key
return key
right arrow key
shift key
space key
now renamed to Meta
super key on linux (command key on macOS, windows key on Windows)
tab key (tabulator)
up arrow key
now renamed to Meta
windows key on Windows (super key on Linux, command key on macOS)
Layout(char)
keyboard layout dependent key
Raw(u16)
raw keycode eg 0x38
Trait Implementations
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl Eq for Key
[src]
impl PartialEq<Key> for Key
[src]
impl StructuralEq for Key
[src]
impl StructuralPartialEq for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,