pub enum KeyCode {
}Expand description
A key code representing a keyboard key.
Variants§
Backspace
Backspace key.
Enter
Enter/Return key.
Left
Left arrow key.
Right
Right arrow key.
Up
Up arrow key.
Down
Down arrow key.
Home
Home key.
End
End key.
PageUp
Page Up key.
PageDown
Page Down key.
Tab
Tab key.
BackTab
Shift+Tab (backtab).
Delete
Delete key.
Insert
Insert key.
F(u8)
Function key (F1-F24).
Char(char)
A character key (includes space).
Esc
Escape key.
CapsLock
Caps Lock key (rarely reported).
ScrollLock
Scroll Lock key.
NumLock
Num Lock key.
PrintScreen
Print Screen key.
Pause
Pause key.
Menu
Menu key.
KeypadBegin
Keypad Begin (numpad 5 without numlock).
Null
Null (Ctrl+Space or Ctrl+@).
Implementations§
Trait Implementations§
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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