[][src]Struct sauron_vdom::event::KeyEvent

pub struct KeyEvent {
    pub key: String,
    pub modifier: Modifier,
    pub repeat: bool,
    pub location: u32,
}

Keypresses creates a key event

Fields

key: String

the key pressed

modifier: Modifier

the modifuer key pressed alongside

repeat: bool

is repeat enabled

location: u32

read-only property returns an unsigned long representing the location of the key on the keyboard or other input device. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location

Implementations

impl KeyEvent[src]

pub fn new(key: String) -> Self[src]

creates a new key event

Trait Implementations

impl Clone for KeyEvent[src]

impl Debug for KeyEvent[src]

impl Default for KeyEvent[src]

impl Eq for KeyEvent[src]

impl From<KeyEvent> for Event[src]

impl PartialEq<KeyEvent> for KeyEvent[src]

impl StructuralEq for KeyEvent[src]

impl StructuralPartialEq for KeyEvent[src]

Auto Trait Implementations

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.