pub enum Key {
Show 55 variants
Null,
ESC,
Ctrl(char),
Tab,
Enter,
BackTab,
Backspace,
AltBackTab,
Up,
Down,
Left,
Right,
Home,
End,
Insert,
Delete,
PageUp,
PageDown,
CtrlUp,
CtrlDown,
CtrlLeft,
CtrlRight,
ShiftUp,
ShiftDown,
ShiftLeft,
ShiftRight,
AltUp,
AltDown,
AltLeft,
AltRight,
AltHome,
AltEnd,
AltPageUp,
AltPageDown,
AltShiftUp,
AltShiftDown,
AltShiftLeft,
AltShiftRight,
F(u8),
CtrlAlt(char),
AltEnter,
AltBackspace,
AltTab,
Alt(char),
Char(char),
CursorPos(u16, u16),
MousePress(MouseButton, u16, u16),
MouseRelease(u16, u16),
MouseHold(u16, u16),
SingleClick(MouseButton, u16, u16),
DoubleClick(MouseButton, u16, u16),
WheelUp(u16, u16, u16),
WheelDown(u16, u16, u16),
BracketedPasteStart,
BracketedPasteEnd,
// some variants omitted
}Expand description
Single key
Variants§
Null
ESC
Ctrl(char)
Tab
Enter
BackTab
Backspace
AltBackTab
Up
Down
Left
Right
Home
End
Insert
Delete
PageUp
PageDown
CtrlUp
CtrlDown
CtrlLeft
CtrlRight
ShiftUp
ShiftDown
ShiftLeft
ShiftRight
AltUp
AltDown
AltLeft
AltRight
AltHome
AltEnd
AltPageUp
AltPageDown
AltShiftUp
AltShiftDown
AltShiftLeft
AltShiftRight
F(u8)
CtrlAlt(char)
AltEnter
AltBackspace
AltTab
Alt(char)
Char(char)
CursorPos(u16, u16)
MousePress(MouseButton, u16, u16)
MouseRelease(u16, u16)
MouseHold(u16, u16)
SingleClick(MouseButton, u16, u16)
DoubleClick(MouseButton, u16, u16)
WheelUp(u16, u16, u16)
WheelDown(u16, u16, u16)
BracketedPasteStart
BracketedPasteEnd
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