Enum sixtyfps_corelib::input::InternalKeyCode [−][src]
pub enum InternalKeyCode {
Left,
Right,
Home,
End,
Back,
Delete,
Return,
Escape,
}
Expand description
InternalKeyCode is used to certain keys to unicode characters, since our public key event only exposes a string. This enum captures this mapping.
Variants
Code corresponding to the left cursor key - encoded as 0xE ASCII (shift out)
Code corresponding to the right cursor key – encoded as 0xF ASCII (shift in)
Code corresponding to the home key – encoded as 0x2 ASCII (start of text)
Code corresponding to the end key – encoded as 0x3 ASCII (end of text)
Code corresponding to the backspace key – encoded as 0x7 ASCII (backspace)
Code corresponding to the delete key – encoded as 0x7F ASCII (delete)
Code corresponding to the return key – encoded as 0xA ASCII (newline)
Code corresponding to the return key – encoded as 0x1b ASCII (escape)
Implementations
Encodes the internal key code as string
Tries to see if the provided string corresponds to a single special encoded key.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InternalKeyCode
impl Send for InternalKeyCode
impl Sync for InternalKeyCode
impl Unpin for InternalKeyCode
impl UnwindSafe for InternalKeyCode
Blanket Implementations
Mutably borrows from an owned value. Read more