Enum cursive::event::Key [] [src]

pub enum Key {
    Enter,
    Tab,
    Backspace,
    Esc,
    Left,
    Right,
    Up,
    Down,
    Ins,
    Del,
    Home,
    End,
    PageUp,
    PageDown,
    PauseBreak,
    NumpadCenter,
    F0,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
}

A non-character key on the keyboard

Variants

Both Enter (or Return) and numpad Enter

Tabulation key

Backspace key

Escape key

Left arrow

Right arrow

Up arrow

Down arrow

Insert key

Delete key

Home key

End key

Page Up key

Page Down key

Pause Break key

The 5 in the center of the keypad, when numlock is disabled.

F0 key

F1 key

F2 key

F3 key

F4 key

F5 key

F6 key

F7 key

F8 key

F9 key

F10 key

F11 key

F12 key

Methods

impl Key
[src]

[src]

Returns the function key corresponding to the given number

1 -> F1, etc...

Panics

If n == 0 || n > 12

Trait Implementations

impl PartialEq for Key
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Key
[src]

impl Clone for Key
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Key
[src]

impl Hash for Key
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Key
[src]

[src]

Formats the value using the given formatter.