Enum KeyCode

Source
pub enum KeyCode {
Show 101 variants 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, LBracket, RBracket, Return, KeyA, KeyS, KeyD, KeyF, KeyG, KeyH, KeyJ, KeyK, KeyL, Semicolon, Quote, Backslash, KeyZ, KeyX, KeyC, KeyV, KeyB, KeyN, KeyM, Comma, Period, Slash, Control, Alt, Shift, Logo, 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,
}
Expand description

Lowest common denominator keymap between desktop and web.

Variantsยง

ยง

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

ยง

LBracket

ยง

RBracket

ยง

Return

ยง

KeyA

ยง

KeyS

ยง

KeyD

ยง

KeyF

ยง

KeyG

ยง

KeyH

ยง

KeyJ

ยง

KeyK

ยง

KeyL

ยง

Semicolon

ยง

Quote

ยง

Backslash

ยง

KeyZ

ยง

KeyX

ยง

KeyC

ยง

KeyV

ยง

KeyB

ยง

KeyN

ยง

KeyM

ยง

Comma

ยง

Period

ยง

Slash

ยง

Control

ยง

Alt

ยง

Shift

ยง

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

Trait Implementationsยง

Sourceยง

impl Clone for KeyCode

Sourceยง

fn clone(&self) -> KeyCode

Returns a copy of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for KeyCode

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Default for KeyCode

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl PartialEq for KeyCode

Sourceยง

fn eq(&self, other: &KeyCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl Copy for KeyCode

Sourceยง

impl StructuralPartialEq for KeyCode

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

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

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

Sourceยง

impl<T> MaybeSendSync for T