[][src]Enum druid::KeyCode

pub enum KeyCode {
    Escape,
    Backtick,
    Key0,
    Key1,
    Key2,
    Key3,
    Key4,
    Key5,
    Key6,
    Key7,
    Key8,
    Key9,
    Minus,
    Equals,
    Backspace,
    Tab,
    KeyQ,
    KeyW,
    KeyE,
    KeyR,
    KeyT,
    KeyY,
    KeyU,
    KeyI,
    KeyO,
    KeyP,
    LeftBracket,
    RightBracket,
    Return,
    KeyA,
    KeyS,
    KeyD,
    KeyF,
    KeyG,
    KeyH,
    KeyJ,
    KeyK,
    KeyL,
    Semicolon,
    Quote,
    Backslash,
    KeyZ,
    KeyX,
    KeyC,
    KeyV,
    KeyB,
    KeyN,
    KeyM,
    Comma,
    Period,
    Slash,
    LeftControl,
    RightControl,
    LeftAlt,
    RightAlt,
    LeftShift,
    RightShift,
    LeftMeta,
    RightMeta,
    Space,
    CapsLock,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
    PrintScreen,
    ScrollLock,
    Pause,
    Insert,
    Delete,
    Home,
    End,
    PageUp,
    PageDown,
    Numpad0,
    Numpad1,
    Numpad2,
    Numpad3,
    Numpad4,
    Numpad5,
    Numpad6,
    Numpad7,
    Numpad8,
    Numpad9,
    NumpadEquals,
    NumpadSubtract,
    NumpadAdd,
    NumpadDecimal,
    NumpadMultiply,
    NumpadDivide,
    NumLock,
    NumpadEnter,
    ArrowUp,
    ArrowDown,
    ArrowLeft,
    ArrowRight,
    Unknown(i32),
}

A platform-independent key identifier.

This ignores things like the user's keyboard layout.

Variants

Escape
Backtick
Key0

The numeral 0 in the top row.

Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
Minus
Equals
Backspace
Tab
KeyQ
KeyW
KeyE
KeyR
KeyT
KeyY
KeyU
KeyI
KeyO
KeyP
LeftBracket

'['

RightBracket
Return
KeyA
KeyS
KeyD
KeyF
KeyG
KeyH
KeyJ
KeyK
KeyL
Semicolon
Quote
Backslash
KeyZ
KeyX
KeyC
KeyV
KeyB
KeyN
KeyM
Comma
Period
Slash
LeftControl
RightControl
LeftAlt
RightAlt
LeftShift
RightShift
LeftMeta

command / windows / meta

RightMeta
Space
CapsLock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
PrintScreen
ScrollLock
Pause
Insert
Delete
Home
End
PageUp
PageDown
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
NumpadEquals
NumpadSubtract
NumpadAdd
NumpadDecimal
NumpadMultiply
NumpadDivide
NumLock
NumpadEnter
ArrowUp
ArrowDown
ArrowLeft
ArrowRight
Unknown(i32)

Methods

impl KeyCode[src]

pub fn is_printable(self) -> bool[src]

Trait Implementations

impl Clone for KeyCode[src]

impl Copy for KeyCode[src]

impl Debug for KeyCode[src]

impl From<i32> for KeyCode[src]

impl PartialEq<KeyCode> for KeyCode[src]

impl StructuralPartialEq for KeyCode[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyCode

impl Send for KeyCode

impl Sync for KeyCode

impl Unpin for KeyCode

impl UnwindSafe for KeyCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.