pub enum Key {
Show 14 variants
Enter,
Tab,
Escape,
Backspace,
Delete,
Space,
ArrowUp,
ArrowDown,
ArrowLeft,
ArrowRight,
Home,
End,
PageUp,
PageDown,
}Expand description
Common keyboard keys for navigation and control.
This enum provides ergonomic constants for frequently used keys.
For typing text/letters, use element.type_text() instead.
Variants§
Enter
Enter/Return key
Tab
Tab key
Escape
Escape key
Backspace
Backspace key
Delete
Delete key
Space
Space bar
ArrowUp
Arrow Up
ArrowDown
Arrow Down
ArrowLeft
Arrow Left
ArrowRight
Arrow Right
Home
Home key
End
End key
PageUp
Page Up key
PageDown
Page Down key
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.