pub enum Key {
}Expand description
A keyboard key, independent of modifiers.
Variants§
Character
A printable character (carried in KeyEvent::character).
Enter
The Enter / Return key.
Escape
The Escape key.
Backspace
The Backspace key.
Tab
The Tab key.
Insert
The Insert key.
Delete
The Delete key.
Home
The Home key.
End
The End key.
PageUp
The Page Up key.
PageDown
The Page Down key.
ArrowUp
The Up arrow.
ArrowDown
The Down arrow.
ArrowLeft
The Left arrow.
ArrowRight
The Right arrow.
Function(u8)
A function key F1..F12.
Unknown(String)
An unparsed escape sequence (the raw bytes are preserved for future handling).
Implementations§
Trait Implementations§
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 UnsafeUnpin 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