Enum console_engine::KeyCode
source · pub enum KeyCode {
}Expand description
Represents a key.
Variants§
Backspace
Backspace key.
Enter
Enter 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 key.
Delete
Delete key.
Insert
Insert key.
F(u8)
F key.
KeyCode::F(1) represents F1 key, etc.
Char(char)
A character.
KeyCode::Char('c') represents c character, etc.
Null
Null.
Esc
Escape key.
Trait Implementations§
source§impl PartialEq<KeyCode> for KeyCode
impl PartialEq<KeyCode> for KeyCode
source§impl PartialOrd<KeyCode> for KeyCode
impl PartialOrd<KeyCode> for KeyCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more