[][src]Enum niko::Key

pub enum Key {
    None,
    Back,
    Tab,
    Enter,
    CapsLock,
    Escape,
    Space,
    PageUp,
    PageDown,
    End,
    Home,
    Left,
    Up,
    Right,
    Down,
    Select,
    Print,
    Execute,
    PrintScreen,
    Insert,
    Delete,
    Help,
    D0,
    D1,
    D2,
    D3,
    D4,
    D5,
    D6,
    D7,
    D8,
    D9,
    A,
    B,
    C,
    D,
    E,
    F,
    G,
    H,
    I,
    J,
    K,
    L,
    M,
    N,
    O,
    P,
    Q,
    R,
    S,
    T,
    U,
    V,
    W,
    X,
    Y,
    Z,
    LeftWindows,
    RightWindows,
    Apps,
    Sleep,
    NumPad0,
    NumPad1,
    NumPad2,
    NumPad3,
    NumPad4,
    NumPad5,
    NumPad6,
    NumPad7,
    NumPad8,
    NumPad9,
    Multiply,
    Add,
    Separator,
    Subtract,
    Decimal,
    Divide,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
    F13,
    F14,
    F15,
    F16,
    F17,
    F18,
    F19,
    F20,
    F21,
    F22,
    F23,
    F24,
    NumLock,
    Scroll,
    LeftShift,
    RightShift,
    LeftControl,
    RightControl,
    LeftAlt,
    RightAlt,
    BrowserBack,
    BrowserForward,
    BrowserRefresh,
    BrowserStop,
    BrowserSearch,
    BrowserFavorites,
    BrowserHome,
    VolumeMute,
    VolumeDown,
    VolumeUp,
    MediaNextTrack,
    MediaPreviousTrack,
    MediaStop,
    MediaPlayPause,
    LaunchMail,
    SelectMedia,
    LaunchApplication1,
    LaunchApplication2,
    OemSemicolon,
    OemPlus,
    OemComma,
    OemMinus,
    OemPeriod,
    OemQuestion,
    OemTilde,
    OemOpenBrackets,
    OemPipe,
    OemCloseBrackets,
    OemQuotes,
    Oem8,
    OemBackslash,
    ProcessKey,
    Attn,
    Crsel,
    Exsel,
    EraseEof,
    Play,
    Zoom,
    Pa1,
    OemClear,
    ChatPadGreen,
    ChatPadOrange,
    Pause,
    ImeConvert,
    ImeNoConvert,
    Kana,
    Kanji,
    OemAuto,
    OemCopy,
    OemEnlW,
}

Variants

None

Reserved.

Back

BACKSPACE key.

Tab

TAB key.

Enter

ENTER key.

CapsLock

CAPS LOCK key.

Escape

ESC key.

Space

SPACEBAR key.

PageUp

PAGE UP key.

PageDown

PAGE DOWN key.

End

END key.

Home

HOME key.

Left

LEFT ARROW key.

Up

UP ARROW key.

Right

RIGHT ARROW key.

Down

DOWN ARROW key.

Select

SELECT key.

Print

PRINT key.

Execute

EXECUTE key.

PrintScreen

PRINT SCREEN key.

Insert

INS key.

Delete

DEL key.

Help

HELP key.

D0

Digit zero key.

D1

Digit one key.

D2

Digit two key.

D3

Digit three key.

D4

Digit four key.

D5

Digit five key.

D6

Digit six key.

D7

Digit seven key.

D8

Digit eight key.

D9

Digit nine key.

A

A key.

B

B key.

C

C key.

D

D key.

E

E key.

F

F key.

G

G key.

H

H key.

I

I key.

J

J key.

K

K key.

L

L key.

M

M key.

N

N key.

O

O key.

P

P key.

Q

Q key.

R

R key.

S

S key.

T

T key.

U

U key.

V

V key.

W

W key.

X

X key.

Y

Y key.

Z

Z key.

LeftWindows

Left Windows key.

RightWindows

Right Windows key.

Apps

Applications key.

Sleep

Computer Sleep key.

NumPad0

Numeric keypad 0 key.

NumPad1

Numeric keypad 1 key.

NumPad2

Numeric keypad 2 key.

NumPad3

Numeric keypad 3 key.

NumPad4

Numeric keypad 4 key.

NumPad5

Numeric keypad 5 key.

NumPad6

Numeric keypad 6 key.

NumPad7

Numeric keypad 7 key.

NumPad8

Numeric keypad 8 key.

NumPad9

Numeric keypad 9 key.

Multiply

Multiply key.

Add

Add key.

Separator

Separator key.

Subtract

Subtract key.

Decimal

Decimal key.

Divide

Divide key.

F1

F1 key.

F2

F2 key.

F3

F3 key.

F4

F4 key.

F5

F5 key.

F6

F6 key.

F7

F7 key.

F8

F8 key.

F9

F9 key.

F10

F10 key.

F11

F11 key.

F12

F12 key.

F13

F13 key.

F14

F14 key.

F15

F15 key.

F16

F16 key.

F17

F17 key.

F18

F18 key.

F19

F19 key.

F20

F20 key.

F21

F21 key.

F22

F22 key.

F23

F23 key.

F24

F24 key.

NumLock

NUM LOCK key.

Scroll

SCROLL LOCK key.

LeftShift

Left SHIFT key.

RightShift

Right SHIFT key.

LeftControl

Left CONTROL key.

RightControl

Right CONTROL key.

LeftAlt

Left ALT key.

RightAlt

Right ALT key.

BrowserBack

Browser Back key.

BrowserForward

Browser Forward key.

BrowserRefresh

Browser Refresh key.

BrowserStop

Browser Stop key.

BrowserSearch

Browser Search key.

BrowserFavorites

Browser Favorites key.

BrowserHome

Browser Start and Home key.

VolumeMute

Volume Mute key.

VolumeDown

Volume Down key.

VolumeUp

Volume Up key.

MediaNextTrack

Next Track key.

MediaPreviousTrack

Previous Track key.

MediaStop

Stop Media key.

MediaPlayPause

Play/Pause Media key.

LaunchMail

Start Mail key.

SelectMedia

Select Media key.

LaunchApplication1

Start Application 1 key.

LaunchApplication2

Start Application 2 key.

OemSemicolon

The OEM Semicolon key on a US standard keyboard.

OemPlus

For any country/region, the '+' key.

OemComma

For any country/region, the ',' key.

OemMinus

For any country/region, the '-' key.

OemPeriod

For any country/region, the '.' key.

OemQuestion

The OEM question mark key on a US standard keyboard.

OemTilde

The OEM tilde key on a US standard keyboard.

OemOpenBrackets

The OEM open bracket key on a US standard keyboard.

OemPipe

The OEM pipe key on a US standard keyboard.

OemCloseBrackets

The OEM close bracket key on a US standard keyboard.

OemQuotes

The OEM singled/double quote key on a US standard keyboard.

Oem8

Used for miscellaneous characters; it can vary by keyboard.

OemBackslash

The OEM angle bracket or backslash key on the RT 102 key keyboard.

ProcessKey

IME PROCESS key.

Attn

Attn key.

Crsel

CrSel key.

Exsel

ExSel key.

EraseEof

Erase EOF key.

Play

Play key.

Zoom

Zoom key.

Pa1

PA1 key.

OemClear

CLEAR key.

ChatPadGreen

Green ChatPad key.

ChatPadOrange

Orange ChatPad key.

Pause

PAUSE key.

ImeConvert

IME Convert key.

ImeNoConvert

IME NoConvert key.

Kana

Kana key on Japanese keyboards.

Kanji

Kanji key on Japanese keyboards.

OemAuto

OEM Auto key.

OemCopy

OEM Copy key.

OemEnlW

OEM Enlarge Window key.

Trait Implementations

impl Clone for Key[src]

impl Copy for Key[src]

impl Debug for Key[src]

impl Eq for Key[src]

impl Hash for Key[src]

impl PartialEq<Key> for Key[src]

impl StructuralEq for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

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> 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.